You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2008/02/27 15:44:01 UTC

svn commit: r631605 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java

Author: rickhall
Date: Wed Feb 27 06:43:59 2008
New Revision: 631605

URL: http://svn.apache.org/viewvc?rev=631605&view=rev
Log:
Applied patch (FELIX-500) to disable the class loading diagnostic message
when the logger is not at the DEBUG level.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java?rev=631605&r1=631604&r2=631605&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java Wed Feb 27 06:43:59 2008
@@ -191,7 +191,11 @@
         }
         catch (ClassNotFoundException ex)
         {
-            String msg = diagnoseClassLoadError(module, name);
+            String msg = name;
+            if (m_logger.getLogLevel() >= Logger.LOG_DEBUG)
+            {
+                msg = diagnoseClassLoadError(module, name);
+            }
             throw new ClassNotFoundException(msg, ex);
         }