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
This commit is contained in:
Lee Hinman 2015-10-30 14:56:11 -06:00
parent d7d3f4ca37
commit f726e11da6
1 changed files with 2 additions and 2 deletions

View File

@ -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!) // If this node is already above the high threshold, the shard cannot remain (get it off!)
final double freeDiskPercentage = usage.getFreeDiskAsPercentage(); final double freeDiskPercentage = usage.getFreeDiskAsPercentage();
final long freeBytes = usage.getFreeBytes(); final long freeBytes = usage.getFreeBytes();
if (logger.isDebugEnabled()) { if (logger.isTraceEnabled()) {
logger.debug("node [{}] has {}% free disk ({} bytes)", node.nodeId(), freeDiskPercentage, freeBytes); logger.trace("node [{}] has {}% free disk ({} bytes)", node.nodeId(), freeDiskPercentage, freeBytes);
} }
if (dataPath == null || usage.getPath().equals(dataPath) == false) { if (dataPath == null || usage.getPath().equals(dataPath) == false) {
return allocation.decision(Decision.YES, NAME, "shard is not allocated on the most utilized disk"); return allocation.decision(Decision.YES, NAME, "shard is not allocated on the most utilized disk");