mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 12:26:47 +00:00
Don't warn on connection timeout exceptions.
// FREEBIE
This commit is contained in:
1 parent
e88b732715
commit
1f0acd0622
1 file changed
+3
-1
@@ -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