TransportSearchTypeAction logs used shards under TRACE level

This commit is contained in:
Boaz Leskes 2013-09-05 13:34:12 +02:00
parent 1de7b1a70c
commit e33107d493
1 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ public abstract class TransportSearchTypeAction extends TransportAction<SearchRe
}
final void innerMoveToSecondPhase() throws Exception {
if (logger.isDebugEnabled()) {
if (logger.isTraceEnabled()) {
StringBuilder sb = new StringBuilder();
boolean hadOne = false;
for (int i = 0; i < firstResults.length(); i++) {
@ -404,7 +404,7 @@ public abstract class TransportSearchTypeAction extends TransportAction<SearchRe
sb.append(result.shardTarget());
}
logger.debug("Moving to second phase, based on results from: {} (cluster state version: {})", sb, clusterState.version());
logger.trace("Moving to second phase, based on results from: {} (cluster state version: {})", sb, clusterState.version());
}
moveToSecondPhase();
}