瀏覽代碼

Resolve #209

tags/release-2.5.0
Decebal Suiu 5 年之前
父節點
當前提交
a6eeceddbf
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8
    3
      pf4j/src/main/java/org/pf4j/CompoundPluginDescriptorFinder.java

+ 8
- 3
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…
取消
儲存