Related to issue 29675: Added the exception to log in error messages
authorCarlos Aristu <carlos.aristu@openbravo.com>
Wed, 24 Jun 2015 10:21:18 +0200
changeset 27145 3a6f672bc73f
parent 27144 051a7473f534
child 27147 48fee56d37da
Related to issue 29675: Added the exception to log in error messages
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelApplicationInitializer.java
--- a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelApplicationInitializer.java	Tue Jun 23 12:52:47 2015 +0200
+++ b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelApplicationInitializer.java	Wed Jun 24 10:21:18 2015 +0200
@@ -73,7 +73,7 @@
             .error("Received null as Database time. Not possible to check timezone differences with Tomcat.");
       }
     } catch (Exception ex) {
-      log4j.error("Could not check if Tomcat and Database are in different timezones.");
+      log4j.error("Could not check if Tomcat and Database are in different timezones.", ex);
     }
   }
 
@@ -85,7 +85,7 @@
       SimpleDateFormat formatter = new SimpleDateFormat(javaDateTimeFormat);
       date = formatter.parse(now);
     } catch (Exception ex) {
-      log4j.error("Could not get the Database time.");
+      log4j.error("Could not get the Database time.", ex);
     }
     return date;
   }