Improved: Logging: change all System.out/.err/.. println to Debug.log... in the code base (OFBIZ-10045)

Thanks Michael Brohl and Kyra Pritzel-Hentley for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Deepak Dixit
2017-12-23 09:08:04 +00:00
parent b30481ffab
commit fb77a3c477
17 changed files with 65 additions and 42 deletions
@@ -87,17 +87,17 @@ public class CommonServices {
Object cKey = entry.getKey();
Object value = entry.getValue();
System.out.println("---- SVC-CONTEXT: " + cKey + " => " + value);
Debug.logInfo("---- SVC-CONTEXT: " + cKey + " => " + value, module);
}
}
if (!context.containsKey("message")) {
response.put("resp", "no message found");
} else {
System.out.println("-----SERVICE TEST----- : " + (String) context.get("message"));
Debug.logInfo("-----SERVICE TEST----- : " + (String) context.get("message"), module);
response.put("resp", "service done");
}
System.out.println("----- SVC: " + dctx.getName() + " -----");
Debug.logInfo("----- SVC: " + dctx.getName() + " -----", module);
return response;
}
@@ -128,7 +128,7 @@ public class CommonServices {
if (duration == null) {
duration = 30000l;
}
System.out.println("-----SERVICE BLOCKING----- : " + duration/1000d +" seconds");
Debug.logInfo("-----SERVICE BLOCKING----- : " + duration/1000d +" seconds", module);
try {
Thread.sleep(duration);
} catch (InterruptedException e) {
@@ -24,4 +24,4 @@ m = bsf.lookupBean("response");
m.put("result", x);
bsf.registerBean("response", m);
java.lang.System.out.println("BSF - JS: " + x);
console.log("BSF - JS: " + x);