mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Add verbose exception log for send error
This commit is contained in:
parent
3206639778
commit
75d7270d5a
2 changed files with 3 additions and 0 deletions
|
@ -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_"}
|
||||||
]
|
]
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue