Improved: Replace all "e.printStackTrace();" by calls to the Debug class.

(OFBIZ-10083)

Thanks Jacques Le Roux for reporting and Kyra Pritzel-Hentley 
for providing the patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Brohl
2017-12-21 12:33:04 +00:00
parent 521ea1b1f3
commit 50c4bba4b2
21 changed files with 60 additions and 52 deletions
@@ -889,7 +889,6 @@ public class DatabaseUtil {
Object result = detection.method.invoke(dbData, detection.params);
Debug.logInfo(String.format(goodFormatStr, detection.name, result, requiredFlag), module);
} catch (Exception e) {
e.printStackTrace();
Debug.logVerbose(e, module);
Debug.logWarning(String.format(badFormatStr, detection.name, requiredFlag), module);
}
@@ -1007,7 +1007,7 @@ public final class TransactionUtil implements Status {
TransactionUtil.commit(tx);
} else {
if (printException) {
transactionAbortCause.printStackTrace();
Debug.logError(transactionAbortCause, module);
}
TransactionUtil.rollback(tx, ifErrorMessage, transactionAbortCause);
}