Improved: Always check if debug verbose is on when using Debug.logVerbose()

(OFBIZ-10052)

This completes r1818075, there were still few cases, a last regexp search is 
never too much :)

Found 4 other loops with Strings concatenation, but who cares, it's only 
verbose logging...

There should not be anymore...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818077 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-12-13 22:37:16 +00:00
parent 735f946b83
commit 4928bf3ae5
9 changed files with 11 additions and 11 deletions
@@ -86,7 +86,7 @@ public class GroovyUtil {
}
if (Debug.verboseOn()) {
Debug.logVerbose("Evaluating -- " + expression, module);
if (Debug.verboseOn()) Debug.logVerbose("Using Context -- " + context, module);
Debug.logVerbose("Using Context -- " + context, module);
}
try {
GroovyShell shell = new GroovyShell(getBinding(context, expression));