mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-22 00:05:31 +00:00
Reduce log level on notice about optional extensions
This commit is contained in:
1 file changed
+1
-6
@@ -444,12 +444,7 @@ public abstract class ExtensionFinder implements ExtensionPoint {
|
||||
}
|
||||
}
|
||||
void error(Key<T> 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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user