@Test public void shouldNotLogInterruptedException() { Exception e = new InterruptedException(); assertThat(HttpServices.shouldLogException(e)).isFalse(); }
static boolean shouldLogException(Throwable t) { if (t instanceof InterruptedException) { logger.debug(t.getMessage(), t); return false; } if (t instanceof IOException && BROWSER_DISCONNECT_MESSAGES.contains(t.getMessage())) { logger.debug(t.getMessage(), t); return false; } if (t instanceof ClosedChannelException) { logger.debug(t.getMessage(), t); return false; } return true; }
HttpServices { static boolean shouldLogException(Throwable t) { if (t instanceof InterruptedException) { logger.debug(t.getMessage(), t); return false; } if (t instanceof IOException && BROWSER_DISCONNECT_MESSAGES.contains(t.getMessage())) { logger.debug(t.getMessage(), t); return false; } if (t instanceof ClosedChannelException) { logger.debug(t.getMessage(), t); return false; } return true; } }
HttpServices { static boolean shouldLogException(Throwable t) { if (t instanceof InterruptedException) { logger.debug(t.getMessage(), t); return false; } if (t instanceof IOException && BROWSER_DISCONNECT_MESSAGES.contains(t.getMessage())) { logger.debug(t.getMessage(), t); return false; } if (t instanceof ClosedChannelException) { logger.debug(t.getMessage(), t); return false; } return true; } private  HttpServices(); }
HttpServices { static boolean shouldLogException(Throwable t) { if (t instanceof InterruptedException) { logger.debug(t.getMessage(), t); return false; } if (t instanceof IOException && BROWSER_DISCONNECT_MESSAGES.contains(t.getMessage())) { logger.debug(t.getMessage(), t); return false; } if (t instanceof ClosedChannelException) { logger.debug(t.getMessage(), t); return false; } return true; } private  HttpServices();  }
HttpServices { static boolean shouldLogException(Throwable t) { if (t instanceof InterruptedException) { logger.debug(t.getMessage(), t); return false; } if (t instanceof IOException && BROWSER_DISCONNECT_MESSAGES.contains(t.getMessage())) { logger.debug(t.getMessage(), t); return false; } if (t instanceof ClosedChannelException) { logger.debug(t.getMessage(), t); return false; } return true; } private  HttpServices();   }