From 30929c3d01804c0db9b06cc62b126a6f18670b80 Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 14 Nov 2010 00:24:51 +0200 Subject: [PATCH] better logging, include index and shard id in log statement --- .../org/elasticsearch/index/shard/recovery/RecoverySource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/recovery/RecoverySource.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/recovery/RecoverySource.java index bf6dbeffc3a..3cd2e683f84 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/recovery/RecoverySource.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/recovery/RecoverySource.java @@ -87,7 +87,7 @@ public class RecoverySource extends AbstractComponent { private RecoveryResponse recover(final StartRecoveryRequest request) { final InternalIndexShard shard = (InternalIndexShard) indicesService.indexServiceSafe(request.shardId().index().name()).shardSafe(request.shardId().id()); - logger.trace("starting recovery to {}, mark_as_relocated {}", request.targetNode(), request.markAsRelocated()); + logger.trace("[{}][{}] starting recovery to {}, mark_as_relocated {}", request.shardId().index().name(), request.shardId().id(), request.targetNode(), request.markAsRelocated()); final RecoveryResponse response = new RecoveryResponse(); shard.recover(new Engine.RecoveryHandler() { @Override public void phase1(final SnapshotIndexCommit snapshot) throws ElasticSearchException {