improve logging

This commit is contained in:
otsmr 2025-11-30 12:27:40 +01:00
parent 108a58ffe1
commit 7aeaa97a68
2 changed files with 1 additions and 2 deletions

View file

@ -44,7 +44,7 @@ Future<(Uint8List, Uint8List?)?> tryToSendCompleteMessage({
if (receipt == null) { if (receipt == null) {
receipt = await twonlyDB.receiptsDao.getReceiptById(receiptId!); receipt = await twonlyDB.receiptsDao.getReceiptById(receiptId!);
if (receipt == null) { if (receipt == null) {
Log.error('Receipt not found.'); Log.warn('Receipt not found.');
return null; return null;
} }
} }

View file

@ -134,7 +134,6 @@ Future<void> handleClient2ClientMessage(int fromUserId, Uint8List body) async {
..receiptId = receiptId ..receiptId = receiptId
..type = Message_Type.PLAINTEXT_CONTENT ..type = Message_Type.PLAINTEXT_CONTENT
..plaintextContent = responsePlaintextContent; ..plaintextContent = responsePlaintextContent;
Log.error('Sending decryption error');
} else { } else {
response = Message()..type = Message_Type.SENDER_DELIVERY_RECEIPT; response = Message()..type = Message_Type.SENDER_DELIVERY_RECEIPT;
} }