Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0031452 | Openbravo ERP | A. Platform | public | 2015-11-12 14:19 | 2015-12-11 10:46 |
|
Reporter | aferraz | |
Assigned To | aferraz | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | dmiguelez |
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 | 0031452: Controlled exceptions should not be logged in error mode |
Description | When we do some checks while running any process and we want to inform user about any controlled error, we normally throw an OBException which is logged in error mode, and it should not.
Only uncontrolled exceptions should be logged in error mode.
It will be better to show an error in the UI (as it is done now), and to log the exception in debug mode instead of in error mode.
This will help to have a more clear log.
In this case, instead of using:
throw new OBException(message);
we should use:
log.debug(message);
throw new OBException(message, false);
to tell OBException we do not want to log the exception in error mode, and do it ourselves in debug mode. |
Steps To Reproduce | N/A |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | defect | 0031451 | 3.0PR16Q1 | closed | aferraz | Error should not be logged in case we throw an OBException with logException parameter as false |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-11-12 14:19 | aferraz | New Issue | |
2015-11-12 14:19 | aferraz | Assigned To | => platform |
2015-11-12 14:19 | aferraz | Modules | => Core |
2015-11-12 14:19 | aferraz | Triggers an Emergency Pack | => No |
2015-11-12 14:20 | aferraz | Summary | Controlled exceptions should not be logged => Controlled exceptions should not be logged in error mode |
2015-11-12 14:21 | aferraz | Description Updated | bug_revision_view_page.php?rev_id=10190#r10190 |
2015-11-12 14:43 | aferraz | Relationship added | depends on 0031451 |
2015-11-12 14:53 | aferraz | Assigned To | platform => aferraz |
2015-11-23 13:24 | hgbot | Checkin | |
2015-11-23 13:24 | hgbot | Note Added: 0082087 | |
2015-11-23 13:24 | hgbot | Status | new => resolved |
2015-11-23 13:24 | hgbot | Resolution | open => fixed |
2015-11-23 13:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/2ec4bfb5b7c9aaa42dce9dca5ac05bd73c818a48 [^] |
2015-11-23 13:24 | hgbot | Checkin | |
2015-11-23 13:24 | hgbot | Note Added: 0082088 | |
2015-11-23 13:24 | hgbot | Checkin | |
2015-11-23 13:24 | hgbot | Note Added: 0082089 | |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082269 | |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082270 | |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082271 | |
2015-12-11 10:46 | dmiguelez | Review Assigned To | => dmiguelez |
2015-12-11 10:46 | dmiguelez | Note Added: 0082677 | |
2015-12-11 10:46 | dmiguelez | Status | resolved => closed |
Notes |
|
(0082087)
|
hgbot
|
2015-11-23 13:24
|
|
Repository: erp/devel/pi
Changeset: 2ec4bfb5b7c9aaa42dce9dca5ac05bd73c818a48
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Nov 12 14:34:31 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2ec4bfb5b7c9aaa42dce9dca5ac05bd73c818a48 [^]
Fixes issue 31452: Avoid log @APRM_INVALID_TRANSACTION@ exception in error mode
Avoid log @APRM_INVALID_TRANSACTION@ exception in error mode in FIN_FinaccTransactionEventListener.validateTransactionType method, and do it in debug mode instead.
This will avoid unstable executions when running APRM automated tests.
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_FinaccTransactionEventListener.java
---
|
|
|
(0082088)
|
hgbot
|
2015-11-23 13:24
|
|
Repository: erp/devel/pi
Changeset: c3fce2ec13d9df8b1e536d8edad53e6847e69e10
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Nov 12 14:45:02 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c3fce2ec13d9df8b1e536d8edad53e6847e69e10 [^]
Related to issue 31452: Avoid log @APRM_PaymentNoLines@ exception in error mode
Avoid log @APRM_PaymentNoLines@ exception in error mode in FIN_PaymentProcess.processPayment method, and do it in debug mode instead.
This will avoid unstable executions when running APRM automated tests.
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
---
|
|
|
(0082089)
|
hgbot
|
2015-11-23 13:24
|
|
Repository: erp/devel/pi
Changeset: 8a03fc30c8e38b22222f4806a3dc1437f19baec5
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Nov 12 14:52:08 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8a03fc30c8e38b22222f4806a3dc1437f19baec5 [^]
Related to issue 31452: Avoid log @PeriodNotAvailable@ exception in error mode
Avoid log @PeriodNotAvailable@ exception in error mode in AddPaymentActionHandler.createNewPayment method, and do it in debug mode instead.
This will avoid unstable executions when running APRM automated tests.
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|