From d9b78000b1c23574d82ed045e9245dcc3d6cae68 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Wed, 21 Nov 2012 13:44:54 +0100 Subject: [PATCH] Setting logger levels using cluster update settings does not work fixes #2428 --- .../org/elasticsearch/node/settings/NodeSettingsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/node/settings/NodeSettingsService.java b/src/main/java/org/elasticsearch/node/settings/NodeSettingsService.java index 994c15424e2..a88863ff596 100644 --- a/src/main/java/org/elasticsearch/node/settings/NodeSettingsService.java +++ b/src/main/java/org/elasticsearch/node/settings/NodeSettingsService.java @@ -79,7 +79,7 @@ public class NodeSettingsService extends AbstractComponent implements ClusterSta for (Map.Entry entry : event.state().metaData().settings().getAsMap().entrySet()) { if (entry.getKey().startsWith("logger.")) { String component = entry.getKey().substring("logger.".length()); - ESLoggerFactory.getLogger(component, entry.getValue()).setLevel(entry.getValue()); + ESLoggerFactory.getLogger(component).setLevel(entry.getValue()); } } } catch (Exception e) {