related to issue 29622: wrong first/last login value retrieval for warn logging
authorCarlos Aristu <carlos.aristu@openbravo.com>
Tue, 19 Dec 2017 08:57:19 +0100
changeset 33123 bcebf5ea2f96
parent 33122 ce1ca4d6985c
child 33124 4ba9b3e34059
related to issue 29622: wrong first/last login value retrieval for warn logging
src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java
--- a/src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java	Mon Dec 18 17:35:46 2017 +0100
+++ b/src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java	Tue Dec 19 08:57:19 2017 +0100
@@ -335,15 +335,14 @@
               .getProperty(SystemInfo.Item.FIRST_LOGIN.getLabel())));
         } catch (ParseException e) {
           log.warn("Incorrect date of first login: "
-              + systemInfo.getProperty(systemInfo.getProperty(SystemInfo.Item.FIRST_LOGIN
-                  .getLabel())));
+              + systemInfo.getProperty(SystemInfo.Item.FIRST_LOGIN.getLabel()));
         }
         try {
           hbLog.setLastLogin(SystemInfo.parseDate(systemInfo.getProperty(SystemInfo.Item.LAST_LOGIN
               .getLabel())));
         } catch (ParseException e) {
           log.warn("Incorrect date of last login: "
-              + systemInfo.getProperty(systemInfo.getProperty(SystemInfo.Item.LAST_LOGIN.getLabel())));
+              + systemInfo.getProperty(SystemInfo.Item.LAST_LOGIN.getLabel()));
         }
         try {
           hbLog.setTotalLogins(Long.parseLong(systemInfo.getProperty(SystemInfo.Item.TOTAL_LOGINS