add trace logging for thrift

This commit is contained in:
kimchy 2010-10-07 11:53:13 +02:00
parent cf5ed1d177
commit 504a5458c5
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ public class ThriftRestImpl extends AbstractComponent implements Rest.Iface {
} }
@Override public org.elasticsearch.thrift.RestResponse execute(RestRequest request) throws TException { @Override public org.elasticsearch.thrift.RestResponse execute(RestRequest request) throws TException {
if (logger.isTraceEnabled()) {
logger.trace("thrift message {}", request);
}
final CountDownLatch latch = new CountDownLatch(1); final CountDownLatch latch = new CountDownLatch(1);
final AtomicReference<RestResponse> ref = new AtomicReference<RestResponse>(); final AtomicReference<RestResponse> ref = new AtomicReference<RestResponse>();
restController.dispatchRequest(new ThriftRestRequest(request), new RestChannel() { restController.dispatchRequest(new ThriftRestRequest(request), new RestChannel() {