[
https://issues.apache.org/jira/browse/TIKA-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16918723#comment-16918723
]
Eric Pugh commented on TIKA-2931:
---------------------------------
Okay, I've made a PR that fixes this problem, with a test.
https://github.com/apache/tika/pull/281
The commit that I actually want is unfortunantly slightly buried..
https://github.com/apache/tika/pull/281/commits/eb1d0f5449280ba40778e6e2b635213b6979d5cc
> Tika CLI shouldn't log with System.out.println
> ----------------------------------------------
>
> Key: TIKA-2931
> URL: https://issues.apache.org/jira/browse/TIKA-2931
> Project: Tika
> Issue Type: Improvement
> Reporter: Eric Pugh
> Assignee: Tim Allison
> Priority: Minor
>
> Running Tika-app on the command line, I expect to get back the output on
> STDOUT to be a single JSON response, with logging going to STDERR, which is
> what happens except if you have a embedded image then there is what I think
> is a stray System.out.println:
> https://github.com/apache/tika/blob/72f4f9bd999569797360b16f92b02ea92216ac22/tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java#L1054
> This causes my output to be a mix of regular text and JSON! See below
> example.
> Extracting 'image0.tif' (image/tiff) to ./image0.tif
> [
> {
> "Author": "Federal Reserve Board",
> "Content-Length": "345888"
> }
> ]
--
This message was sent by Atlassian Jira
(v8.3.2#803003)