Improved: Always check if debug verbose is on when using Debug.logVerbose()
(OFBIZ-10052) This completes r1818010, there were much more cases. Also few tabs automatically replaced by spaces git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ public final class SetServiceFields extends MethodOperation {
|
||||
Map<String, ? extends Object> fromMap = mapFma.get(methodContext.getEnvMap());
|
||||
if (fromMap == null) {
|
||||
if (Debug.verboseOn()) {
|
||||
if (Debug.verboseOn()) Debug.logVerbose("The from map in set-service-field was not found with name: " + mapFma, module);
|
||||
Debug.logVerbose("The from map in set-service-field was not found with name: " + mapFma, module);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
+1
-1
@@ -151,7 +151,7 @@ public final class Iterate extends MethodOperation {
|
||||
}
|
||||
} else {
|
||||
if (Debug.verboseOn()) {
|
||||
if (Debug.verboseOn()) Debug.logVerbose("Cannot iterate over a " + objList == null ? "null object" : objList.getClass().getName()
|
||||
Debug.logVerbose("Cannot iterate over a " + objList == null ? "null object" : objList.getClass().getName()
|
||||
+ ", doing nothing: " + this, module);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user