fixed issue #756 , improve exception logger

This commit is contained in:
七锋
2018-07-17 22:15:42 +08:00
parent 33a2a6121a
commit df8fe4a9eb
2 changed files with 39 additions and 7 deletions

View File

@@ -23,6 +23,11 @@ public class NamedThreadFactory implements ThreadFactory {
public void uncaughtException(Thread t,
Throwable e) {
if (e instanceof InterruptedException
|| (e.getCause() != null && e.getCause() instanceof InterruptedException)) {
return;
}
logger.error("from " + t.getName(), e);
}
};