mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-18 13:14:24 +01:00
Add verbose exception log for send error
This commit is contained in:
@@ -3192,6 +3192,7 @@
|
||||
{"name":"attachmentCase_"},
|
||||
{"name":"attachment_"},
|
||||
{"name":"bitField0_"},
|
||||
{"name":"bodyRanges_"},
|
||||
{"name":"group_"},
|
||||
{"name":"profileKey_"}
|
||||
]
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user