mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-24 23:47:59 +01:00
Adjust log levels on delivery receipt failure.
// FREEBIE
This commit is contained in:
@@ -140,8 +140,10 @@ public class WebSocketConnection implements DispatchChannel {
|
||||
receiptSender.sendReceipt(account, message.getSource(), message.getTimestamp(),
|
||||
message.hasRelay() ? Optional.of(message.getRelay()) :
|
||||
Optional.<String>absent());
|
||||
} catch (IOException | NoSuchUserException | TransientPushFailureException | NotPushRegisteredException e) {
|
||||
logger.warn("sendDeliveryReceiptFor", e);
|
||||
} catch (NoSuchUserException | NotPushRegisteredException e) {
|
||||
logger.info("No longer registered " + e.getMessage());
|
||||
} catch(IOException | TransientPushFailureException e) {
|
||||
logger.warn("Something wrong while sending receipt", e);
|
||||
} catch (WebApplicationException e) {
|
||||
logger.warn("Bad federated response for receipt: " + e.getResponse().getStatus());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user