diff --git a/core/src/main/java/hudson/ExtensionFinder.java b/core/src/main/java/hudson/ExtensionFinder.java index bd8fc132d0..ed4e3581b2 100644 --- a/core/src/main/java/hudson/ExtensionFinder.java +++ b/core/src/main/java/hudson/ExtensionFinder.java @@ -444,12 +444,7 @@ public abstract class ExtensionFinder implements ExtensionPoint { } } void error(Key key, Throwable x) { - if (verbose) { - LOGGER.log(Level.WARNING, "Failed to instantiate " + key + "; skipping this component", x); - } else { - LOGGER.log(Level.INFO, "Failed to instantiate optional component {0}; skipping", key.getTypeLiteral()); - LOGGER.log(Level.FINE, key.toString(), x); - } + LOGGER.log(verbose ? Level.WARNING : Level.FINE, "Failed to instantiate " + key + "; skipping this component", x); } }; }