diff --git a/sojorn_app/lib/services/local_message_store.dart b/sojorn_app/lib/services/local_message_store.dart index 081517e..5d53b2c 100644 --- a/sojorn_app/lib/services/local_message_store.dart +++ b/sojorn_app/lib/services/local_message_store.dart @@ -89,9 +89,7 @@ class LocalMessageStore { ); return _cachedKey!; } catch (e) { - if (attempt == _maxRetries - 1) { - '[LOCAL_STORE] Failed to store encryption key after $_maxRetries attempts: $e'); - } + if (attempt == _maxRetries - 1) rethrow; await Future.delayed(_retryDelay * (attempt + 1)); } } @@ -187,7 +185,6 @@ class LocalMessageStore { success = true; break; } catch (e) { - '[LOCAL_STORE] Save attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e'); if (attempt < _maxRetries - 1) { await Future.delayed(_retryDelay * (attempt + 1)); } @@ -250,7 +247,6 @@ class LocalMessageStore { await _messageBox!.delete(messageId); return pending?.plaintext; } - '[LOCAL_STORE] Read attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e'); if (attempt < _maxRetries - 1) { await Future.delayed(_retryDelay * (attempt + 1)); } @@ -453,7 +449,6 @@ class LocalMessageStore { return true; } catch (e) { - '[LOCAL_STORE] Delete attempt ${attempt + 1}/$_maxRetries failed for $messageId: $e'); if (attempt < _maxRetries - 1) { await Future.delayed(_retryDelay * (attempt + 1)); }