james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [04/10] james-project git commit: JAMES-2456 Log on error while requesting Tika
Date Wed, 11 Jul 2018 03:34:33 GMT
JAMES-2456 Log on error while requesting Tika


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/dbe717c6
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/dbe717c6
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/dbe717c6

Branch: refs/heads/master
Commit: dbe717c6305f3281b53644649271f2f63af09d5d
Parents: 5ff88fd
Author: Antoine Duprat <aduprat@linagora.com>
Authored: Thu Jul 5 15:41:24 2018 +0200
Committer: benwa <btellier@linagora.com>
Committed: Wed Jul 11 10:28:52 2018 +0700

----------------------------------------------------------------------
 .../java/org/apache/james/mailbox/tika/TikaHttpClientImpl.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/dbe717c6/mailbox/tika/src/main/java/org/apache/james/mailbox/tika/TikaHttpClientImpl.java
----------------------------------------------------------------------
diff --git a/mailbox/tika/src/main/java/org/apache/james/mailbox/tika/TikaHttpClientImpl.java
b/mailbox/tika/src/main/java/org/apache/james/mailbox/tika/TikaHttpClientImpl.java
index 0d54038..a8d9df4 100644
--- a/mailbox/tika/src/main/java/org/apache/james/mailbox/tika/TikaHttpClientImpl.java
+++ b/mailbox/tika/src/main/java/org/apache/james/mailbox/tika/TikaHttpClientImpl.java
@@ -26,9 +26,12 @@ import java.net.URISyntaxException;
 import org.apache.http.client.fluent.Request;
 import org.apache.http.client.utils.URIBuilder;
 import org.apache.http.entity.ContentType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class TikaHttpClientImpl implements TikaHttpClient {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(TikaHttpClientImpl.class);
     private static final String RECURSIVE_METADATA_AS_TEXT_ENDPOINT = "/rmeta/text";
 
     private final TikaConfiguration tikaConfiguration;
@@ -57,6 +60,7 @@ public class TikaHttpClientImpl implements TikaHttpClient {
                     .returnContent()
                     .asStream();
         } catch (IOException e) {
+            LOGGER.error("Failing to call Tika", e);
             throw new TikaException(e);
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message