From 504a5458c5c2d67f63db4ac13d977a814648ba43 Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 7 Oct 2010 11:53:13 +0200 Subject: [PATCH] add trace logging for thrift --- .../src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java b/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java index 8da5638c252..1c556987eb5 100644 --- a/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java +++ b/plugins/transport/thrift/src/main/java/org/elasticsearch/thrift/ThriftRestImpl.java @@ -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 ref = new AtomicReference(); restController.dispatchRequest(new ThriftRestRequest(request), new RestChannel() {