related to bug 34880: added query string to error log
authorAsier Lostalé <asier.lostale@openbravo.com>
Tue, 10 Jan 2017 09:33:32 +0100
changeset 31457 2a03b4d16b5d
parent 31456 30095891fd55
child 31458 53870f5306ea
child 31967 283ee31c8d79
related to bug 34880: added query string to error log
src/org/openbravo/erpCommon/ad_callouts/SL_AlertRule_SQL.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_AlertRule_SQL.java	Tue Jan 10 09:21:04 2017 +0100
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_AlertRule_SQL.java	Tue Jan 10 09:33:32 2017 +0100
@@ -123,12 +123,12 @@
           try {
             this.getConnection().setReadOnly(false);
           } catch (SQLException | NoConnectionAvailableException e) {
-            log.error("Error resetting readonly to connection in Alert Rule query: {}", e);
+            log.error("Error resetting readonly to connection in Alert Rule query: {}", strSQL, e);
           }
           try {
             this.releasePreparedStatement(st);
           } catch (SQLException e) {
-            log.error("Error releasing statement in Alert Rule query: {}", e);
+            log.error("Error releasing statement in Alert Rule query: {}", strSQL, e);
           }
         }
       } else {