Adjust log levels on delivery receipt failure.
// FREEBIE
This commit is contained in:
parent
f2a9de3ba8
commit
15ddde1df4
|
@ -140,8 +140,10 @@ public class WebSocketConnection implements DispatchChannel {
|
||||||
receiptSender.sendReceipt(account, message.getSource(), message.getTimestamp(),
|
receiptSender.sendReceipt(account, message.getSource(), message.getTimestamp(),
|
||||||
message.hasRelay() ? Optional.of(message.getRelay()) :
|
message.hasRelay() ? Optional.of(message.getRelay()) :
|
||||||
Optional.<String>absent());
|
Optional.<String>absent());
|
||||||
} catch (IOException | NoSuchUserException | TransientPushFailureException | NotPushRegisteredException e) {
|
} catch (NoSuchUserException | NotPushRegisteredException e) {
|
||||||
logger.warn("sendDeliveryReceiptFor", e);
|
logger.info("No longer registered " + e.getMessage());
|
||||||
|
} catch(IOException | TransientPushFailureException e) {
|
||||||
|
logger.warn("Something wrong while sending receipt", e);
|
||||||
} catch (WebApplicationException e) {
|
} catch (WebApplicationException e) {
|
||||||
logger.warn("Bad federated response for receipt: " + e.getResponse().getStatus());
|
logger.warn("Bad federated response for receipt: " + e.getResponse().getStatus());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue