Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049877
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Distribution Ordersminorhave not tried2022-07-26 16:462022-08-03 22:51
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0049877: Distribution Orders module is using bad logging (System.out,System.err println or printStackTrace)

DescriptionThis module is using bad logging (printStackTrace) which should fixed (removing it or converting to proper log4j)
Steps To Reproducegrep -IrE "System.out|System.err|printStackTrace" | grep -v buildvalidation | grep -v modulescript | grep -v src-test | cut -d'/' -f1-2 | sort | uniq -c

Proposed SolutionReview and move the logging to proper log4j usage.

While doing that check if:
- stackTrace is really wanted
- Logging is really useful (and not developer leftover)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks design defect 0036162 acknowledgedTriage Platform Base Openbravo ERP clean up openbravo.log 

-  Notes
(0139617)
hgbot (developer)
2022-07-26 16:54

Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/12 [^]
(0139862)
hgbot (developer)
2022-08-03 22:51

Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/12 [^]
(0139863)
hgbot (developer)
2022-08-03 22:51

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder [^]
Changeset: 32568268f271b0ab060e77ed662d8ed59a979f26
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 26-07-2022 16:52:44
URL: https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/commit/32568268f271b0ab060e77ed662d8ed59a979f26 [^]

Fixes ISSUE-49877: Convert printStackTrace to proper log4j

Using printStackTrace is bad logging. Convert single leftover case to
log4j.

---
M src/org/openbravo/distributionorder/actionHandler/ProcessDistributionOrder.java
---

- Issue History
Date Modified Username Field Change
2022-07-26 16:46 shuehner New Issue
2022-07-26 16:46 shuehner Assigned To => mtaal
2022-07-26 16:46 shuehner Issue generated from 0048092
2022-07-26 16:46 shuehner Assigned To mtaal => shuehner
2022-07-26 16:54 hgbot Note Added: 0139617
2022-07-26 16:55 shuehner Relationship added blocks 0036162
2022-08-03 22:51 hgbot Resolution open => fixed
2022-08-03 22:51 hgbot Status new => closed
2022-08-03 22:51 hgbot Note Added: 0139862
2022-08-03 22:51 hgbot Note Added: 0139863


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker