You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2022/04/06 14:52:08 UTC
[tika] branch main updated: Update DetectorResource.java (#543)
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new 4e8a750c0 Update DetectorResource.java (#543)
4e8a750c0 is described below
commit 4e8a750c04bf5fe700f88bf78c547a4d4f533a56
Author: Tim Allison <ta...@apache.org>
AuthorDate: Wed Apr 6 10:52:03 2022 -0400
Update DetectorResource.java (#543)
log down all the exceptions, otherwise, no exception information in the log
Co-authored-by: Beam Liu <be...@gmail.com>
---
.../java/org/apache/tika/server/core/resource/DetectorResource.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/DetectorResource.java b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/DetectorResource.java
index 3c04acc33..ec0f37cdf 100644
--- a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/DetectorResource.java
+++ b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/DetectorResource.java
@@ -73,6 +73,9 @@ public class DetectorResource {
LOG.error("OOM while detecting: ({})", filename, e);
serverStatus.setStatus(ServerStatus.STATUS.ERROR);
throw e;
+ } catch (Throwable e){
+ LOG.error("Exception while detecting: ({})", filename, e);
+ throw e;
} finally {
serverStatus.complete(taskId);
}