Add trace logging before sending single shard requests

This commit is contained in:
Jason Tedor 2015-09-08 08:38:24 -04:00
parent 28970e7d54
commit cf539a2158
1 changed files with 8 additions and 0 deletions

View File

@ -210,6 +210,14 @@ public abstract class TransportSingleShardAction<Request extends SingleShardRequ
onFailure(shardRouting, new NoShardAvailableActionException(shardRouting.shardId()));
} else {
internalRequest.request().internalShardId = shardRouting.shardId();
if (logger.isTraceEnabled()) {
logger.trace(
"sending request [{}] to shard [{}] on node [{}]",
internalRequest.request(),
internalRequest.request().internalShardId,
node
);
}
transportService.sendRequest(node, transportShardAction, internalRequest.request(), new BaseTransportResponseHandler<Response>() {
@Override