THRIFT-5287: Log When Client Connections are Dropped
Client: java
Patch: David Mollitor

This closes #2253
diff --git a/lib/java/src/org/apache/thrift/server/TSimpleServer.java b/lib/java/src/org/apache/thrift/server/TSimpleServer.java
index 13501ef..70cc3d7 100644
--- a/lib/java/src/org/apache/thrift/server/TSimpleServer.java
+++ b/lib/java/src/org/apache/thrift/server/TSimpleServer.java
@@ -82,6 +82,7 @@
         }
       } catch (TTransportException ttx) {
         // Client died, just move on
+        LOGGER.debug("Client Transportation Exception", ttx);
       } catch (TException tx) {
         if (!stopped_) {
           LOGGER.error("Thrift error occurred during processing of message.", tx);
diff --git a/lib/java/src/org/apache/thrift/server/TThreadPoolServer.java b/lib/java/src/org/apache/thrift/server/TThreadPoolServer.java
index e2f31d5..467b10d 100644
--- a/lib/java/src/org/apache/thrift/server/TThreadPoolServer.java
+++ b/lib/java/src/org/apache/thrift/server/TThreadPoolServer.java
@@ -315,6 +315,8 @@
             processor.process(inputProtocol, outputProtocol);
         }
       } catch (Exception x) {
+        LOGGER.debug("Error processing request", x);
+
         // We'll usually receive RuntimeException types here
         // Need to unwrap to ascertain real causing exception before we choose to ignore
         // Ignore err-logging all transport-level/type exceptions