details:   https://code.openbravo.com/erp/devel/pi/rev/59a8db5a95cb
changeset: 27050:59a8db5a95cb
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Tue Jun 30 09:04:31 2015 +0200
summary:   Related to issue 29675: improvements in log messages

diffstat:

 
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelApplicationInitializer.java
 |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r d098ea6d07c7 -r 59a8db5a95cb 
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);
     }
   }
 

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to