You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2008/01/08 10:34:44 UTC

svn commit: r609914 - /incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java

Author: cziegeler
Date: Tue Jan  8 01:34:41 2008
New Revision: 609914

URL: http://svn.apache.org/viewvc?rev=609914&view=rev
Log:
Add some debug logging for class path handling.

Modified:
    incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java

Modified: incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java?rev=609914&r1=609913&r2=609914&view=diff
==============================================================================
--- incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java (original)
+++ incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java Tue Jan  8 01:34:41 2008
@@ -529,6 +529,7 @@
                         Class.forName(className, true,
                             this.getClass().getClassLoader());
                     } catch (Throwable t) {
+                        this.logger.log(Logger.LOG_DEBUG, "Class " + className + " not found. Ignoring '" + pEntry.getValue() + "' for property " + osgiProp);
                         // don't really care, but class checking failed, so we
                         // do not add
                         continue;
@@ -536,6 +537,7 @@
                 }
 
                 // get here if class is known or no checker class
+                this.logger.log(Logger.LOG_DEBUG, "Adding '" + pEntry.getValue() + "' to property " + osgiProp);
                 prop.append(',').append(pEntry.getValue());
                 mod = true;
             }
@@ -543,6 +545,7 @@
 
         // replace the property with the modified property
         if (mod) {
+            this.logger.log(Logger.LOG_DEBUG, "Setting property " + osgiProp + " to " + prop.toString());
             props.put(osgiProp, prop.toString());
         }
     }