Browse Source

Resolve #209

pull/255/head
Decebal Suiu 6 years ago
parent
commit
a6eeceddbf
  1. 11
      pf4j/src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java

11
pf4j/src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java

@ -67,9 +67,14 @@ public class CompoundPluginDescriptorFinder implements PluginDescriptorFinder {
return pluginDescriptor;
}
} catch (Exception e) {
// log the exception and continue with the next finder
log.error(e.getMessage(), e);
log.debug("Try to continue with the next finder");
if (finders.indexOf(finder) == finders.size() - 1) {
// it's the last finder
log.error(e.getMessage(), e);
} else {
// log the exception and continue with the next finder
log.debug(e.getMessage());
log.debug("Try to continue with the next finder");
}
}
} else {
log.debug("'{}' is not applicable for plugin '{}'", finder, pluginPath);

Loading…
Cancel
Save