THRIFT-3119 Java's TThreadedSelectorServer has indistinguishable log messages in run()
This closes #470
commit f2898ff23b529a584c104989c320b450248da292
Author: Intropy <jbolla@gmail.com>
Date: 2015-04-29T00:25:16Z
Add thread class to the run() failure log message
diff --git a/lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java b/lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java
index 8737413..353b8e0 100644
--- a/lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java
+++ b/lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java
@@ -375,7 +375,7 @@
select();
}
} catch (Throwable t) {
- LOGGER.error("run() exiting due to uncaught error", t);
+ LOGGER.error("run() on AcceptThread exiting due to uncaught error", t);
} finally {
try {
acceptSelector.close();
@@ -546,7 +546,7 @@
cleanupSelectionKey(selectionKey);
}
} catch (Throwable t) {
- LOGGER.error("run() exiting due to uncaught error", t);
+ LOGGER.error("run() on SelectorThread exiting due to uncaught error", t);
} finally {
try {
selector.close();