mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 11:18:41 +00:00
improve logging for retransmission
This commit is contained in:
parent
7157d286a0
commit
0bd810f82c
2 changed files with 6 additions and 1 deletions
|
|
@ -210,7 +210,8 @@ class ApiService {
|
|||
Future retransmitRawBytes() async {
|
||||
await lockRetransStore.protect(() async {
|
||||
var retransmit = await getRetransmission();
|
||||
Log.info("retransmitting ${retransmit.keys.length} messages");
|
||||
if (retransmit.keys.isEmpty) return;
|
||||
Log.info("retransmitting ${retransmit.keys.length} raw bytes messages");
|
||||
bool gotError = false;
|
||||
for (final seq in retransmit.keys) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@ Future tryTransmitMessages() async {
|
|||
final retransIds =
|
||||
await twonlyDB.messageRetransmissionDao.getRetransmitAbleMessages();
|
||||
|
||||
if (retransIds.isEmpty) return;
|
||||
|
||||
Log.info("Retransmitting ${retransIds.length} text messages");
|
||||
|
||||
for (final retransId in retransIds) {
|
||||
sendRetransmitMessage(retransId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue