Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037849Openbravo ERPA. Platformpublic2018-02-07 11:352018-02-22 18:19
shuehner 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR18Q2 
caristu
Core
No
0037849: Remove system key hash in log files as not useful and makes log-parsing harder
Currently there is special code automatically adding a new first field to any line in openbravo.log file.

Example:
ef97dd76 2018-02-05 14:00:18,758 [http-thread-pool-threads - 70] INFO
^ ^ ^

That shows in logfiles that the instance in activated and in theory could be used to identify the license used.

However that info is easily available by other means (in the application, database query, etc...)

Having that extra field make log-parsing harder as it is non-standard + also not even present always. As first few lines during openbravo start do not have it yet and only then it is added.

Apart having that extra custom logic to runtime-reconfigure log4j might make updating the library harder.
-
Remove that feature.
No tags attached.
related to design defect 0036162 acknowledged Triage Platform Base clean up openbravo.log 
Issue History
2018-02-07 11:35shuehnerNew Issue
2018-02-07 11:35shuehnerAssigned To => platform
2018-02-07 11:35shuehnerModules => Core
2018-02-07 11:35shuehnerTriggers an Emergency Pack => No
2018-02-08 08:14alostaleRelationship addedrelated to 0036162
2018-02-08 08:29alostaleAssigned Toplatform => alostale
2018-02-08 08:29hgbotCheckin
2018-02-08 08:29hgbotNote Added: 0102268
2018-02-08 08:29hgbotStatusnew => resolved
2018-02-08 08:29hgbotResolutionopen => fixed
2018-02-08 08:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2615e116021b412fb4a91e0ef5109688a35ca39b [^]
2018-02-08 08:30alostaleReview Assigned To => caristu
2018-02-08 09:25hgbotCheckin
2018-02-08 09:25hgbotNote Added: 0102269
2018-02-12 16:42caristuNote Added: 0102337
2018-02-12 16:42caristuStatusresolved => closed
2018-02-12 16:42caristuFixed in Version => 3.0PR18Q2
2018-02-22 18:19hudsonbotCheckin
2018-02-22 18:19hudsonbotNote Added: 0102732
2018-02-22 18:19hudsonbotCheckin
2018-02-22 18:19hudsonbotNote Added: 0102733

Notes
(0102268)
hgbot   
2018-02-08 08:29   
Repository: erp/devel/pi
Changeset: 2615e116021b412fb4a91e0ef5109688a35ca39b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 08 08:28:54 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2615e116021b412fb4a91e0ef5109688a35ca39b [^]

fixed issue 37849: remove system key hash in log files

  This hash has been removed as it is not useful and complicates log parsing

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0102269)
hgbot   
2018-02-08 09:25   
Repository: erp/devel/pi
Changeset: 17c6f2da95962644832ef41e6bc8b28f41f8ea81
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 08 09:25:40 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/17c6f2da95962644832ef41e6bc8b28f41f8ea81 [^]

realted to issue 37849: remove system key hash in log files

  Restored ActivationKey.getOpsLogId method as it is public and used

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0102337)
caristu   
2018-02-12 16:42   
Code reviewed + tested
(0102732)
hudsonbot   
2018-02-22 18:19   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/980a6ad5bbf5 [^]
Maturity status: Test
(0102733)
hudsonbot   
2018-02-22 18:19   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/980a6ad5bbf5 [^]
Maturity status: Test