Skip to content

Commit

Permalink
cleaner log message upon exception
Browse files Browse the repository at this point in the history
  • Loading branch information
lolocohen committed Jun 3, 2018
1 parent 27bf31f commit d8a8a57
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -34,7 +34,7 @@ class QueuingSocketInitializer extends SocketInitializerImpl {
*/
private static final Logger log = LoggerFactory.getLogger(QueuingSocketInitializer.class);
/**
*
* Performs connection initializations asynchronously using threads with TTL.
*/
private static final ExecutorService executor = initExecutor();

Expand Down Expand Up @@ -65,7 +65,8 @@ public Boolean call() throws Exception {
return f.get();
} catch (final Exception e) {
if (lastException == null) lastException = e;
log.error(e.getMessage(), e);
if (e instanceof InterruptedException) log.warn(e.toString());
else log.error(e.getMessage(), e);
}
return false;
}
Expand Down

0 comments on commit d8a8a57

Please sign in to comment.