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

@ -3192,6 +3192,7 @@
{"name":"attachmentCase_"}, {"name":"attachmentCase_"},
{"name":"attachment_"}, {"name":"attachment_"},
{"name":"bitField0_"}, {"name":"bitField0_"},
{"name":"bodyRanges_"},
{"name":"group_"}, {"name":"group_"},
{"name":"profileKey_"} {"name":"profileKey_"}
] ]

View file

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