Add logging on APNs exception

This commit is contained in:
Moxie Marlinspike 2019-03-22 17:46:07 -07:00
parent ed766484d2
commit 40aa685aba
1 changed files with 2 additions and 0 deletions

View File

@ -141,8 +141,10 @@ public class RetryingApnsClient {
}
} catch (InterruptedException e) {
logger.warn("Interrupted exception", e);
future.setException(e);
} catch (ExecutionException e) {
logger.warn("Execution exception", e);
if (e.getCause() instanceof ClientNotConnectedException) setDisconnected(e.getCause());
else future.setException(e.getCause());
}