Add verbose exception log for send error

This commit is contained in:
AsamK 2023-03-03 17:58:02 +01:00
parent 3206639778
commit 75d7270d5a
2 changed files with 3 additions and 0 deletions

View file

@ -200,6 +200,7 @@ public class SendHelper {
} catch (IOException e) {
var address = context.getRecipientHelper().resolveSignalServiceAddress(account.getSelfRecipientId());
logger.warn("Failed to send message due to IO exception: {}", e.getMessage());
logger.debug("Exception", e);
return SendMessageResult.networkFailure(address);
}
}
@ -642,6 +643,7 @@ public class SendHelper {
return SendMessageResult.identityFailure(address, e.getIdentityKey());
} catch (IOException e) {
logger.warn("Failed to send message due to IO exception: {}", e.getMessage());
logger.debug("Exception", e);
return SendMessageResult.networkFailure(address);
}
}