felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r631605 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
Date Wed, 27 Feb 2008 14:44:01 GMT
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);
         }
 



Mime
View raw message