Setting logger levels using cluster update settings does not work

fixes #2428
This commit is contained in:
Shay Banon 2012-11-21 13:44:54 +01:00
parent 9e2469e04f
commit d9b78000b1
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class NodeSettingsService extends AbstractComponent implements ClusterSta
for (Map.Entry<String, String> entry : event.state().metaData().settings().getAsMap().entrySet()) { for (Map.Entry<String, String> entry : event.state().metaData().settings().getAsMap().entrySet()) {
if (entry.getKey().startsWith("logger.")) { if (entry.getKey().startsWith("logger.")) {
String component = entry.getKey().substring("logger.".length()); String component = entry.getKey().substring("logger.".length());
ESLoggerFactory.getLogger(component, entry.getValue()).setLevel(entry.getValue()); ESLoggerFactory.getLogger(component).setLevel(entry.getValue());
} }
} }
} catch (Exception e) { } catch (Exception e) {