[ 
https://issues.apache.org/jira/browse/PDFBOX-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson resolved PDFBOX-1503.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

[r1607508|http://svn.apache.org/r1607508] removes all calls to 
printStackTrace() in the trunk.

> Double logging of exceptions
> ----------------------------
>
>                 Key: PDFBOX-1503
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1503
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Juraj Lonc
>             Fix For: 2.0.0
>
>
> I made web application which uses pdfbox library and its funcionality.
> This web application is deployed on jboss. (log4j is used for logging)
> If some exception occurs in pdfbox then exception is printed twice. That is 
> not good. It makes mess in log and it is hard to use SMTPAppender or other 
> appender that processes log events.
> Problem is that you are using everywhere construction:
> try {
> ...
> } catch( Exception e ) {
>  e.printStackTrace();
>  LOG.error(e, e);
> }
> I think it would be nice to have it like this:
> try {
> ...
> } catch( Exception e ) {
>  LOG.error(e, e);
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to