You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Zac Jacobson (Jira)" <ji...@apache.org> on 2022/02/22 17:04:00 UTC

[jira] [Commented] (TIKA-3680) Use logging instead of e.printStackTrace()

    [ https://issues.apache.org/jira/browse/TIKA-3680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496227#comment-17496227 ] 

Zac Jacobson commented on TIKA-3680:
------------------------------------

Thank you!

> Use logging instead of e.printStackTrace()
> ------------------------------------------
>
>                 Key: TIKA-3680
>                 URL: https://issues.apache.org/jira/browse/TIKA-3680
>             Project: Tika
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 1.28, 2.3.0
>            Reporter: Zac Jacobson
>            Priority: Major
>             Fix For: 2.3.1
>
>
> When running tika-server, by default response messages are sent to stdout, and logging is sent to stderr. But the project also calls e.printStackTrace() in a number of places which dumps stack traces directly to stderr, and they are not decorated with the configured logging formatters.
> This makes managing tika's logs on a centralized log host such as ELK cumbersome.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)