[jbossts-issues] [JBoss JIRA] (JBTM-1982) Use logger to log all the exception stacktraces instead of several Exception.printStackTrace() calls which uses the stdout

Tom Jenkinson (JIRA) issues at jboss.org
Tue Aug 11 12:17:08 EDT 2015


     [ https://issues.jboss.org/browse/JBTM-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Jenkinson reassigned JBTM-1982:
-----------------------------------

    Assignee:     (was: Tom Jenkinson)


> Use logger to log all the exception stacktraces instead of several Exception.printStackTrace() calls which uses the stdout
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBTM-1982
>                 URL: https://issues.jboss.org/browse/JBTM-1982
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>          Components: JTA, JTS
>    Affects Versions: 4.17.10
>            Reporter: Ondřej Chaloupka
>            Priority: Minor
>
> The arjuna code uses pattern e.printStackTrace() on several places in the code. This would be better to be changed for a logger would be used. 
> For ArjunaJTA I counted 28 (excluding tests) places where the logger is not used and I suppose it should be.
> Secondary. It would be nice in case of the XAException the error code would be printed together with the exception stacktrace. I have one example where I would appreciated it for example.
> It's ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/recovery/arjunacore/XARecoveryModule.java
> method handleOrphan where after the xares.rollback(xid) is called the exception is printed to stdout + log does not contain the error code.
> This issue was moved from https://bugzilla.redhat.com/show_bug.cgi?id=1007384.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the jbossts-issues mailing list