incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1334770 - /sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java
Date Sun, 06 May 2012 21:07:09 GMT
Author: cziegeler
Date: Sun May  6 21:07:09 2012
New Revision: 1334770

URL: http://svn.apache.org/viewvc?rev=1334770&view=rev
Log:
Improve logging

Modified:
    sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java

Modified: sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java?rev=1334770&r1=1334769&r2=1334770&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java
(original)
+++ sling/trunk/bundles/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java
Sun May  6 21:07:09 2012
@@ -182,7 +182,7 @@ public final class RepositoryClassLoader
      */
     public URL findResource(final String name) {
         if (destroyed) {
-            logger.warn("Destroyed class loader cannot find a resource");
+            logger.warn("Destroyed class loader cannot find a resource: {}", name);
             return null;
         }
 
@@ -213,7 +213,7 @@ public final class RepositoryClassLoader
      */
     public Enumeration<URL> findResources(final String name) {
         if (destroyed) {
-            logger.warn("Destroyed class loader cannot find resources");
+            logger.warn("Destroyed class loader cannot find resources: {}", name);
             return new Enumeration<URL>() {
                 public boolean hasMoreElements() {
                     return false;
@@ -352,7 +352,7 @@ public final class RepositoryClassLoader
     public void handleEvent(final String path) {
         synchronized ( this.usedResources ) {
             if ( this.usedResources.contains(path) ) {
-                logger.debug("handleEvent: Item {} has been modified - marking class loader
as dirty {}", this);
+                logger.debug("handleEvent: Item {} has been modified - marking class loader
as dirty {}", path, this);
                 this.dirty = true;
             }
         }



Mime
View raw message