Logging: improve logging messages added in #9562 & #9562

Closes #9603
This commit is contained in:
Boaz Leskes 2015-02-06 21:44:57 +01:00
parent 66b5ed86f7
commit e684d7fde4
2 changed files with 4 additions and 4 deletions

View File

@ -117,13 +117,13 @@ public class TransportNodesListGatewayStartedShards extends TransportNodesOperat
@Override
protected NodeGatewayStartedShards nodeOperation(NodeRequest request) throws ElasticsearchException {
try {
logger.trace("loading shard state info for {}", request.shardId);
logger.trace("{} loading local shard state info", request.shardId);
ShardStateInfo shardStateInfo = shardsState.loadShardInfo(request.shardId);
if (shardStateInfo != null) {
logger.debug("{} shard state info found: [{}]", request.shardId, shardStateInfo);
return new NodeGatewayStartedShards(clusterService.localNode(), shardStateInfo.version);
}
logger.trace("no shard info found for {}", request.shardId);
logger.trace("{} no local shard info found", request.shardId);
return new NodeGatewayStartedShards(clusterService.localNode(), -1);
} catch (Exception e) {
throw new ElasticsearchException("failed to load started shards", e);

View File

@ -186,9 +186,9 @@ public class TransportNodesListShardStoreMetaData extends TransportNodesOperatio
} finally {
TimeValue took = new TimeValue(System.currentTimeMillis() - startTime);
if (exists) {
logger.debug("loaded store meta data for {} (took [{}])", shardId, took);
logger.debug("{} loaded store meta data (took [{}])", shardId, took);
} else {
logger.trace("loaded store meta data for {} (took [{}])", shardId, took);
logger.trace("{} didn't find any store meta data to load (took [{}])", shardId, took);
}
}
}