mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-25 17:08:04 +01:00
Don't warn on connection timeout exceptions.
// FREEBIE
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user