Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035490 | Openbravo ERP | A. Platform | public | 2017-03-12 13:13 | 2017-03-15 20:22 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0035490: SystemService logValidationResults logs a ERROR line always if there are no errors (shows in export.database) |
Description | The 'Validating module' part of export.database calls to SystemService in erp sourcecode to do the validation + to log the result.
That logValidationResult method assembles a StringBuffer and logs it using log4j.error.
However if does not check if that String does contain anything so logs an 'empty' error all the time.
Note that this is minor for the moment as export.database does have bad log4j config so it does not show the log-level prefix at the moment. Fixing that manually show the problem clearly like this:
24623 [main] INFO org.openbravo.ddlutils.task.ExportDatabase - Validating Module...
25022 [main] ERROR org.openbravo.ddlutils.task.ExportDatabase -
|
Steps To Reproduce | Run export.database with any module in development and notice the extra empty line on Validating module.
With the debugging patch attached to this issue it will show the wrong log level clearly.
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0035493 | | closed | alostale | missing log info when check consistency fails |
|
Attached Files | 35490_fix.diff (445) 2017-03-12 13:14 https://issues.openbravo.com/file_download.php?file_id=10555&type=bug debugging-do-not-commit-fix-log4j.diff (941) 2017-03-12 13:15 https://issues.openbravo.com/file_download.php?file_id=10556&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2017-03-12 13:13 | shuehner | New Issue | |
2017-03-12 13:13 | shuehner | Assigned To | => platform |
2017-03-12 13:13 | shuehner | Modules | => Core |
2017-03-12 13:13 | shuehner | Triggers an Emergency Pack | => No |
2017-03-12 13:14 | shuehner | File Added: 35490_fix.diff | |
2017-03-12 13:15 | shuehner | File Added: debugging-do-not-commit-fix-log4j.diff | |
2017-03-12 13:15 | shuehner | Note Added: 0094956 | |
2017-03-13 07:49 | alostale | Assigned To | platform => shuehner |
2017-03-13 07:49 | hgbot | Checkin | |
2017-03-13 07:49 | hgbot | Note Added: 0094968 | |
2017-03-13 07:49 | hgbot | Status | new => resolved |
2017-03-13 07:49 | hgbot | Resolution | open => fixed |
2017-03-13 07:49 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0dd550bbbef217729547c193505710672401aa65 [^] |
2017-03-13 07:51 | alostale | Review Assigned To | => alostale |
2017-03-13 07:51 | alostale | Note Added: 0094969 | |
2017-03-13 07:51 | alostale | Status | resolved => closed |
2017-03-13 07:51 | alostale | Fixed in Version | => 3.0PR17Q2 |
2017-03-13 09:17 | alostale | Relationship added | related to 0035493 |
2017-03-15 20:22 | hudsonbot | Checkin | |
2017-03-15 20:22 | hudsonbot | Note Added: 0095293 | |