You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/02/08 20:35:19 UTC

[jira] [Updated] (PDFBOX-1503) Double logging of exceptions

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

John Hewson updated PDFBOX-1503:
--------------------------------

    Summary: Double logging of exceptions  (was: double logging of exceptions)

> Double logging of exceptions
> ----------------------------
>
>                 Key: PDFBOX-1503
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1503
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Juraj Lonc
>
> 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.1.5#6160)