You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Eric Pugh (Jira)" <ji...@apache.org> on 2019/08/28 21:41:00 UTC

[jira] [Created] (TIKA-2931) Tika CLI shouldn't log with System.out.println

Eric Pugh created TIKA-2931:
-------------------------------

             Summary: 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


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)