Setting logger levels using cluster update settings does not work
fixes #2428
This commit is contained in:
parent
9e2469e04f
commit
d9b78000b1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue