incubator-sling-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1334806&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=1334806&r1=1334805&r2=1334806&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 22:24:01 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: {}", name);
+            logger.warn("Destroyed class loader cannot find a resource: " + name, new IllegalStateException());
             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: {}", name);
+            logger.warn("Destroyed class loader cannot find a resources: " + name, new IllegalStateException());
             return new Enumeration<URL>() {
                 public boolean hasMoreElements() {
                     return false;



Mime
View raw message