From 1cc5da43b3bec43285fea965cf7b49422d0db281 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Wed, 1 Oct 2014 16:14:09 +0200 Subject: [PATCH] Logging: suppress long mapping logging during mapping updates (unless in TRACE) Currently DEBUG logs can get very verbose because IndicesClusterStateService logs the complete mapping with every mapping update. We should suppress it if long in DEBUG mode and always log the full one in TRACE. Closes #7949 --- .../indices/cluster/IndicesClusterStateService.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java b/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java index aa90e913a6b..1fb363c8337 100644 --- a/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java +++ b/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java @@ -43,7 +43,6 @@ import org.elasticsearch.common.collect.Tuple; import org.elasticsearch.common.component.AbstractLifecycleComponent; import org.elasticsearch.common.compress.CompressedString; import org.elasticsearch.common.inject.Inject; -import org.elasticsearch.common.inject.Injector; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.common.util.concurrent.ConcurrentCollections; @@ -406,8 +405,12 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent