Author: doogie
Date: Mon Mar 15 07:26:10 2010
New Revision: 923101
URL:
http://svn.apache.org/viewvc?rev=923101&view=revLog:
Turn off verbosity of Converters, and no longer explicitly call
Debug.verboseOn; it's not a fast path that needs to have it protected,
as this code is only called once at startup.
Modified:
ofbiz/trunk/framework/base/config/log4j.xml
ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java
Modified: ofbiz/trunk/framework/base/config/log4j.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/config/log4j.xml?rev=923101&r1=923100&r2=923101&view=diff==============================================================================
--- ofbiz/trunk/framework/base/config/log4j.xml (original)
+++ ofbiz/trunk/framework/base/config/log4j.xml Mon Mar 15 07:26:10 2010
@@ -137,6 +137,10 @@
</layout>
</appender>
+ <category name="org.ofbiz.base.converter.Converters">
+ <priority value="warn"/>
+ </category>
+
<category name="org.apache.catalina">
<priority value="warn"/>
</category>
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java?rev=923101&r1=923100&r2=923101&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java Mon Mar 15 07:26:10 2010
@@ -179,9 +179,7 @@ OUTER:
sb.append(targetClass.getName());
String key = sb.toString();
if (converterMap.putIfAbsent(key, converter) == null) {
- if (Debug.verboseOn()) {
- Debug.logVerbose("Registered converter " + converter.getClass().getName(), module);
- }
+ Debug.logVerbose("Registered converter " + converter.getClass().getName(), module);
}
}