This is an automated email from the ASF dual-hosted git repository.
snagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/master by this push:
new fa1ae9b NUTCH-2485 ParserFactory swallows exception (patch
contributed by Markus Jelsma)
fa1ae9b is described below
commit fa1ae9b89b08e3104d537299d526cd28a7ea9d76
Author: Sebastian Nagel <[email protected]>
AuthorDate: Thu Jun 28 11:26:23 2018 +0200
NUTCH-2485 ParserFactory swallows exception
(patch contributed by Markus Jelsma)
---
src/java/org/apache/nutch/parse/ParserFactory.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/java/org/apache/nutch/parse/ParserFactory.java
b/src/java/org/apache/nutch/parse/ParserFactory.java
index c68c26f..6c7eac9 100644
--- a/src/java/org/apache/nutch/parse/ParserFactory.java
+++ b/src/java/org/apache/nutch/parse/ParserFactory.java
@@ -137,10 +137,13 @@ public final class ParserFactory {
parsers.add(p);
} catch (PluginRuntimeException e) {
if (LOG.isWarnEnabled()) {
- LOG.warn("ParserFactory:PluginRuntimeException when "
- + "initializing parser plugin "
- + ext.getDescriptor().getPluginId() + " instance in getParsers "
- + "function: attempting to continue instantiating parsers");
+ LOG.warn(
+ "ParserFactory:PluginRuntimeException when "
+ + "initializing parser plugin "
+ + ext.getDescriptor().getPluginId()
+ + " instance because: " + e.getMessage()
+ + " - attempting to continue instantiating parsers",
+ e);
}
}
}