summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2016-02-20 03:34:56 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2016-02-20 03:34:56 +0200
commit093694f2d8b608cad1b749dc7631dd2d5b9e4004 (patch)
tree4cc4c20d65b82c6de2cc847d2c2cfe99539736aa
parent6f0b4b8c6a1d4fc53eee0e6b02c311a1b8cb6eaf (diff)
downloadpf4j-093694f2d8b608cad1b749dc7631dd2d5b9e4004.tar.gz
pf4j-093694f2d8b608cad1b749dc7631dd2d5b9e4004.zip
Log with trace level on PluginClassLoader
-rw-r--r--pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java
index f7eb95a..34259af 100644
--- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java
+++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java
@@ -59,10 +59,10 @@ public class PluginClassLoader extends URLClassLoader {
@Override
public Class<?> loadClass(String className) throws ClassNotFoundException {
synchronized (getClassLoadingLock(className)) {
- log.debug("Received request to load class '{}'", className);
+ log.trace("Received request to load class '{}'", className);
// if the class it's a part of the plugin engine use parent class loader
if (className.startsWith(PLUGIN_PACKAGE_PREFIX)) {
- log.debug("Delegate the loading of class '{}' to parent", className);
+ log.trace("Delegate the loading of class '{}' to parent", className);
try {
return getClass().getClassLoader().loadClass(className);
} catch (ClassNotFoundException e) {
@@ -76,21 +76,21 @@ public class PluginClassLoader extends URLClassLoader {
// second check whether it's already been loaded
Class<?> clazz = findLoadedClass(className);
if (clazz != null) {
- log.debug("Found loaded class '{}'", className);
+ log.trace("Found loaded class '{}'", className);
return clazz;
}
// nope, try to load locally
try {
clazz = findClass(className);
- log.debug("Found class '{}' in plugin classpath", className);
+ log.trace("Found class '{}' in plugin classpath", className);
return clazz;
} catch (ClassNotFoundException e) {
// try next step
}
// look in dependencies
- log.debug("Look in dependencies for class '{}'", className);
+ log.trace("Look in dependencies for class '{}'", className);
List<PluginDependency> dependencies = pluginDescriptor.getDependencies();
for (PluginDependency dependency : dependencies) {
PluginClassLoader classLoader = pluginManager.getPluginClassLoader(dependency.getPluginId());
@@ -101,7 +101,7 @@ public class PluginClassLoader extends URLClassLoader {
}
}
- log.debug("Couldn't find class '{}' in plugin classpath. Delegating to parent", className);
+ log.trace("Couldn't find class '{}' in plugin classpath. Delegating to parent", className);
// use the standard URLClassLoader (which follows normal parent delegation)
return super.loadClass(className);
@@ -117,14 +117,14 @@ public class PluginClassLoader extends URLClassLoader {
*/
@Override
public URL getResource(String name) {
- log.debug("Trying to find resource '{}' in plugin classpath", name);
+ log.trace("Trying to find resource '{}' in plugin classpath", name);
URL url = findResource(name);
if (url != null) {
- log.debug("Found resource '{}' in plugin classpath", name);
+ log.trace("Found resource '{}' in plugin classpath", name);
return url;
}
- log.debug("Couldn't find resource '{}' in plugin classpath. Delegating to parent");
+ log.trace("Couldn't find resource '{}' in plugin classpath. Delegating to parent");
return super.getResource(name);
}