change logging level to debug

This commit is contained in:
kimchy 2010-07-23 19:29:14 +03:00
parent 72682a6730
commit f6255f8ad9
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ public class PreferUnallocatedShardUnassignedStrategy extends AbstractComponent
TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData nodesStoreFilesMetaData = transportNodesListShardStoreMetaData.list(shard.shardId(), false, nodesIds.toArray(new String[nodesIds.size()])).actionGet(); TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData nodesStoreFilesMetaData = transportNodesListShardStoreMetaData.list(shard.shardId(), false, nodesIds.toArray(new String[nodesIds.size()])).actionGet();
if (logger.isWarnEnabled()) { if (logger.isDebugEnabled()) {
if (nodesStoreFilesMetaData.failures().length > 0) { if (nodesStoreFilesMetaData.failures().length > 0) {
StringBuilder sb = new StringBuilder(shard + ": failures when trying to list stores on nodes:"); StringBuilder sb = new StringBuilder(shard + ": failures when trying to list stores on nodes:");
for (int i = 0; i < nodesStoreFilesMetaData.failures().length; i++) { for (int i = 0; i < nodesStoreFilesMetaData.failures().length; i++) {
@ -105,7 +105,7 @@ public class PreferUnallocatedShardUnassignedStrategy extends AbstractComponent
} }
sb.append("\n -> ").append(nodesStoreFilesMetaData.failures()[i].getDetailedMessage()); sb.append("\n -> ").append(nodesStoreFilesMetaData.failures()[i].getDetailedMessage());
} }
logger.warn(sb.toString()); logger.debug(sb.toString());
} }
} }