add trace logging for thrift
This commit is contained in:
parent
cf5ed1d177
commit
504a5458c5
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue