Tone down websocket logging for bad federated responses.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-04-21 19:44:02 -07:00
parent fd8e8d1475
commit 7cfa93f5f8
1 changed files with 3 additions and 1 deletions

View File

@ -137,8 +137,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 | WebApplicationException e) {
} catch (IOException | NoSuchUserException | TransientPushFailureException | NotPushRegisteredException e) {
logger.warn("sendDeliveryReceiptFor", e);
} catch (WebApplicationException e) {
logger.warn("Bad federated response for receipt: " + e.getResponse().getStatus());
}
}