From 35942e586667698aa82c30b827a62c19f0a1559e Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Mon, 9 Jul 2018 20:15:07 +0300 Subject: [PATCH] Improve the logging --- .../src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pf4j/src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java b/pf4j/src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java index d8f03a7..990b9c0 100644 --- a/pf4j/src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java +++ b/pf4j/src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java @@ -68,7 +68,8 @@ public class CompoundPluginDescriptorFinder implements PluginDescriptorFinder { } } catch (Exception e) { // log the exception and continue with the next finder - log.error(e.getMessage()); // ?! + log.error(e.getMessage(), e); + log.debug("Try to continue with the next finder"); } } else { log.debug("'{}' is not applicable for plugin '{}'", finder, pluginPath); -- 2.39.5