From 422484d7502fb16f45c1a8143aa9eef867659e81 Mon Sep 17 00:00:00 2001 From: Sergey Tyurin Date: Fri, 13 Oct 2017 11:59:48 -0700 Subject: [PATCH] Emit warning instead of error when plugin root is not present (#176) --- pf4j/src/main/java/org/pf4j/AbstractPluginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java index 936b6bf..ea94432 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java @@ -208,7 +208,7 @@ public abstract class AbstractPluginManager implements PluginManager { log.debug("Lookup plugins in '{}'", pluginsRoot); // check for plugins root if (Files.notExists(pluginsRoot) || !Files.isDirectory(pluginsRoot)) { - log.error("No '{}' root", pluginsRoot); + log.warn("No '{}' root", pluginsRoot); return; }