From 69835a14068a943ba6aeae4e3ebb208cb31ed935 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Wed, 23 Apr 2014 18:29:45 +0300 Subject: [PATCH] add info message about pf4j version and the runtime mode --- .../src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java index a90ad56..339c063 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java @@ -571,9 +571,6 @@ public class DefaultPluginManager implements PluginManager { // retrieves the runtime mode from system String modeAsString = System.getProperty("pf4j.mode", RuntimeMode.DEPLOYMENT.toString()); runtimeMode = RuntimeMode.byName(modeAsString); - - log.info("PF4J runtime mode is '{}'", runtimeMode); - } return runtimeMode; @@ -716,6 +713,8 @@ public class DefaultPluginManager implements PluginManager { pluginStateListeners = new ArrayList(); + log.info("PF4J version {} in '{}' mode", getVersion(), getRuntimeMode()); + pluginClasspath = createPluginClasspath(); pluginDescriptorFinder = createPluginDescriptorFinder(); extensionFinder = createExtensionFinder(); -- 2.39.5