fixed bug 33192: hidden stack trace on VariablesBase error logging
authorAsier Lostalé <asier.lostale@openbravo.com>
Wed, 08 Jun 2016 13:21:55 +0200
changeset 29618 ed44288c1e71
parent 29617 0b8997369760
child 29619 7c7933ca1dca
fixed bug 33192: hidden stack trace on VariablesBase error logging
src-core/src/org/openbravo/base/VariablesBase.java
--- a/src-core/src/org/openbravo/base/VariablesBase.java	Tue Jun 07 19:59:56 2016 +0530
+++ b/src-core/src/org/openbravo/base/VariablesBase.java	Wed Jun 08 13:21:55 2016 +0200
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2001-2015 Openbravo S.L.U.
+ * Copyright (C) 2001-2016 Openbravo S.L.U.
  * Licensed under the Apache Software License version 2.0
  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to  in writing,  software  distributed
@@ -1430,7 +1430,7 @@
         sessionAttributes.put(attribute.toUpperCase(), value);
       }
     } catch (Exception e) {
-      log4j.error("setSessionObject error: " + attribute + ":..." + e);
+      log4j.error("setSessionObject error: " + attribute + ":...", e);
     }
   }
 
@@ -1477,7 +1477,7 @@
         sessionAttributes.clear();
       }
     } catch (Exception e) {
-      log4j.error("clearSession error " + e);
+      log4j.error("clearSession error ", e);
     }
     if (session != null) {
       if (!target.equals("")) {