SOLR-9481: Add info-level log "Initializing authentication plugin: <classname>"

Move Sha256AuthProv warning "No users configured yet" to debug level, as this is quite normal
This commit is contained in:
Jan Høydahl 2016-10-26 09:22:55 +02:00
parent 768c7e2648
commit b69c5d9f27
2 changed files with 2 additions and 1 deletions

View File

@ -308,6 +308,7 @@ public class CoreContainer {
// Initialize the plugin
if (pluginClassName != null) {
log.info("Initializing authentication plugin: " + pluginClassName);
authenticationPlugin = new SecurityPluginHolder<>(readVersion(authenticationConfig),
getResourceLoader().newInstance(pluginClassName,
AuthenticationPlugin.class,

View File

@ -64,7 +64,7 @@ public class Sha256AuthenticationProvider implements ConfigEditablePlugin, Basi
credentials = new LinkedHashMap<>();
Map<String,String> users = (Map<String,String>) pluginConfig.get("credentials");
if (users == null) {
log.warn("No users configured yet");
log.debug("No users configured yet");
return;
}
for (Map.Entry<String, String> e : users.entrySet()) {