Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart McCulloch2011-11-17 09:50:00 -0500
committerStuart McCulloch2011-11-17 09:50:00 -0500
commit0fe9353c2f4c107b1a9bf1163352872ebb9c5300 (patch)
treebde5246c64bf598822bc35e289c4d4e49decea2b
parent8a97ebe44393952db7f7da88168d78683ec5460b (diff)
downloadorg.eclipse.hudson.core-0fe9353c2f4c107b1a9bf1163352872ebb9c5300.tar.gz
org.eclipse.hudson.core-0fe9353c2f4c107b1a9bf1163352872ebb9c5300.tar.xz
org.eclipse.hudson.core-0fe9353c2f4c107b1a9bf1163352872ebb9c5300.zip
Discard unwanted AspectJ trace output from custom WeavingURLClassLoader
-rw-r--r--hudson-inject/src/main/java/org/eclipse/hudson/inject/internal/plugin/PluginClassLoader.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/hudson-inject/src/main/java/org/eclipse/hudson/inject/internal/plugin/PluginClassLoader.java b/hudson-inject/src/main/java/org/eclipse/hudson/inject/internal/plugin/PluginClassLoader.java
index 20a2963c..fa6d69da 100644
--- a/hudson-inject/src/main/java/org/eclipse/hudson/inject/internal/plugin/PluginClassLoader.java
+++ b/hudson-inject/src/main/java/org/eclipse/hudson/inject/internal/plugin/PluginClassLoader.java
@@ -21,6 +21,8 @@ import org.aspectj.weaver.loadtime.WeavingURLClassLoader;
import java.net.URL;
import java.util.List;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
@@ -38,6 +40,9 @@ public class PluginClassLoader
public PluginClassLoader(final List<URL> urls, final ClassLoader parent) {
super(urls.toArray(new URL[urls.size()]), parent);
+
+ // Some optional classes might not exist, so want to avoid excessive tracing
+ Logger.getLogger(WeavingURLClassLoader.class.getName()).setLevel(Level.OFF);
}
public PluginWrapper getPlugin() {

Back to the top