From: Decebal Suiu Date: Mon, 9 Jul 2018 17:15:07 +0000 (+0300) Subject: Improve the logging X-Git-Tag: release-2.4.0~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35942e586667698aa82c30b827a62c19f0a1559e;p=pf4j.git Improve the logging --- 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);