From f726e11da6283d2074ab3ab06777f7e1782b6686 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Fri, 30 Oct 2015 14:56:11 -0600 Subject: [PATCH] Move logging for the amount of free disk to TRACE Since this can potentially be logged for every `canRemain`, it's nicer to put it in TRACE rather than DEBUG. Resolves #12843 --- .../routing/allocation/decider/DiskThresholdDecider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java b/core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java index f21ced8cc0a..a02c72c5745 100644 --- a/core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java +++ b/core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java @@ -466,8 +466,8 @@ public class DiskThresholdDecider extends AllocationDecider { // If this node is already above the high threshold, the shard cannot remain (get it off!) final double freeDiskPercentage = usage.getFreeDiskAsPercentage(); final long freeBytes = usage.getFreeBytes(); - if (logger.isDebugEnabled()) { - logger.debug("node [{}] has {}% free disk ({} bytes)", node.nodeId(), freeDiskPercentage, freeBytes); + if (logger.isTraceEnabled()) { + logger.trace("node [{}] has {}% free disk ({} bytes)", node.nodeId(), freeDiskPercentage, freeBytes); } if (dataPath == null || usage.getPath().equals(dataPath) == false) { return allocation.decision(Decision.YES, NAME, "shard is not allocated on the most utilized disk");