Adjust log levels on delivery receipt failure.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-11-04 11:20:09 -08:00
parent f2a9de3ba8
commit 15ddde1df4
1 changed files with 4 additions and 2 deletions

View File

@ -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());
}