Improves error message
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Fri, 25 Jul 2014 11:40:47 +0200
changeset 24123 f83ffce28e79
parent 24122 336a98b4d28e
child 24124 f9d88e0b35db
Improves error message
src/org/openbravo/erpCommon/ad_forms/AcctServer.java
--- a/src/org/openbravo/erpCommon/ad_forms/AcctServer.java	Fri Jul 25 10:56:35 2014 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/AcctServer.java	Fri Jul 25 11:40:47 2014 +0200
@@ -707,9 +707,8 @@
         errors++;
         Status = AcctServer.STATUS_Error;
         save(conn, vars.getUser());
-        log4j.warn(e);
-        log4j.warn("RecordId: " + strClave + " - tableId" + AD_Table_ID);
-        e.printStackTrace();
+        log4j.error(
+            "An error ocurred posting RecordId: " + strClave + " - tableId: " + AD_Table_ID, e);
       }
     } catch (ServletException e) {
       log4j.error(e);