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:
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user