Skip to content

Commit

Permalink
add trace logging for thrift
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Oct 7, 2010
1 parent cf5ed1d commit 504a545
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public class ThriftRestImpl extends AbstractComponent implements Rest.Iface {
}

@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 AtomicReference<RestResponse> ref = new AtomicReference<RestResponse>();
restController.dispatchRequest(new ThriftRestRequest(request), new RestChannel() {
Expand Down

0 comments on commit 504a545

Please sign in to comment.