james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [09/10] james-project git commit: JAMES-2456 Add content type to Tika logs
Date Wed, 24 Oct 2018 01:51:35 GMT
JAMES-2456 Add content type to Tika logs

We have many non-contextualized logs from Tika client failing to execute some requests.

Having the content type included in the lgos should help to diagnose what is happening.


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

Branch: refs/heads/master
Commit: ba378ea2948a2933e4530a48a0e78da9d3a5a553
Parents: c53b0ce
Author: Benoit Tellier <btellier@linagora.com>
Authored: Tue Oct 23 14:13:48 2018 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Wed Oct 24 08:48:34 2018 +0700

----------------------------------------------------------------------
 .../java/org/apache/james/mailbox/tika/TikaHttpClientImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/ba378ea2/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 32ee7e6..402eb6b 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
@@ -62,7 +62,7 @@ public class TikaHttpClientImpl implements TikaHttpClient {
                         .returnContent()
                         .asStream());
         } catch (IOException e) {
-            LOGGER.warn("Failing to call Tika", e);
+            LOGGER.warn("Failing to call Tika for content type {}", contentType, e);
             return Optional.empty();
         }
     }


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