Don't warn on connection timeout exceptions.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-01-03 16:51:59 -08:00
parent e88b732715
commit 1f0acd0622
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ public class IOExceptionMapper implements ExceptionMapper<IOException> {
@Override
public Response toResponse(IOException e) {
logger.warn("IOExceptionMapper", e);
if (!(e.getCause() instanceof java.util.concurrent.TimeoutException)) {
logger.warn("IOExceptionMapper", e);
}
return Response.status(503).build();
}
}