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/05/04 20:00:31 UTC
[tika] branch main updated: add more debug logging to ExternalParser
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 91d389f06 add more debug logging to ExternalParser
91d389f06 is described below
commit 91d389f0687b987083c63dc3b4683e90a0a897ab
Author: tallison <ta...@apache.org>
AuthorDate: Wed May 4 16:00:17 2022 -0400
add more debug logging to ExternalParser
---
.../src/main/java/org/apache/tika/parser/external/ExternalParser.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tika-core/src/main/java/org/apache/tika/parser/external/ExternalParser.java b/tika-core/src/main/java/org/apache/tika/parser/external/ExternalParser.java
index 7c76db396..52c7cdcab 100644
--- a/tika-core/src/main/java/org/apache/tika/parser/external/ExternalParser.java
+++ b/tika-core/src/main/java/org/apache/tika/parser/external/ExternalParser.java
@@ -169,6 +169,7 @@ public class ExternalParser extends AbstractParser {
throw new TimeoutException();
}
int result = process.exitValue();
+ LOG.debug("exit value for {}: {}", checkCmd[0], result);
for (int err : errorValue) {
if (result == err) {
return false;
@@ -176,6 +177,7 @@ public class ExternalParser extends AbstractParser {
}
return true;
} catch (IOException | InterruptedException | TimeoutException e) {
+ LOG.debug("exception trying to run " + checkCmd[0], e);
// Some problem, command is there or is broken
return false;
} catch (SecurityException se) {
@@ -184,6 +186,7 @@ public class ExternalParser extends AbstractParser {
} catch (Error err) {
if (err.getMessage() != null && (err.getMessage().contains("posix_spawn") ||
err.getMessage().contains("UNIXProcess"))) {
+ LOG.debug("(TIKA-1526): exception trying to run: " + checkCmd[0], err);
//"Error forking command due to JVM locale bug
//(see TIKA-1526 and SOLR-6387)"
return false;