Related to issue 29675: improvements in log messages
authorCarlos Aristu <carlos.aristu@openbravo.com>
Tue, 30 Jun 2015 09:04:31 +0200
changeset 27169 59a8db5a95cb
parent 27168 d098ea6d07c7
child 27170 9d2b4c014bca
Related to issue 29675: improvements in log 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	Mon Jun 29 22:53:12 2015 +0000
+++ b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelApplicationInitializer.java	Tue Jun 30 09:04:31 2015 +0200
@@ -66,14 +66,15 @@
       if (dbDate != null) {
         long difference = Math.abs(tomcatDate.getTime() - dbDate.getTime());
         if (difference > THRESHOLD) {
-          log4j.warn("Tomcat and Database are in different timezones.");
+          log4j.warn("Tomcat and Database do not have the same time. Tomcat Time: " + tomcatDate
+              + ", Database Time: " + dbDate);
         }
       } else {
         log4j
-            .error("Received null as Database time. Not possible to check timezone differences with Tomcat.");
+            .error("Received null as Database time. Not possible to check time differences with Tomcat.");
       }
     } catch (Exception ex) {
-      log4j.error("Could not check if Tomcat and Database are in different timezones.", ex);
+      log4j.error("Could not check if Tomcat and Database have the same time.", ex);
     }
   }