tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2931) Tika CLI shouldn't log with System.out.println
Date Wed, 04 Sep 2019 12:41:00 GMT

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

Hudson commented on TIKA-2931:
------------------------------

UNSTABLE: Integrated in Jenkins build tika-2.x-windows #453 (See [https://builds.apache.org/job/tika-2.x-windows/453/])
TIKA-2931 (#281) (tallison: rev 056304fc8eea69cbb32dd3d3898edee6859f800d)
* (edit) tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java
* (edit) tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java


> 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)

Mime
View raw message