Reduce log level on notice about optional extensions

This commit is contained in:
Jesse Glick committed 2020-04-01 16:15:41 -04:00
1 parent cc27faa48d
commit a3a4a2e92d
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);
}
};
}