From d01390139665faeadf60488f8f9f3c008b59943a Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 4 Apr 2026 23:08:54 +0300 Subject: [PATCH] db: *warn* the users when encrypted entries cannot be decrypted Signed-off-by: NotAShelf Change-Id: I1cfe9994b640cdf571007b5c52b0a2bc6a6a6964 --- src/db/mod.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/db/mod.rs b/src/db/mod.rs index 60d6a0b..4bc2cd1 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -606,9 +606,7 @@ impl SqliteClipboardDb { match decrypt_data(&contents) { Ok(decrypted) => decrypted, Err(e) => { - debug!( - "Skipping entry {id} in JSON output: decryption failed: {e}" - ); + warn!("Skipping entry {id} in JSON output: decryption failed: {e}"); continue; }, } @@ -872,7 +870,7 @@ impl ClipboardDb for SqliteClipboardDb { match decrypt_data(&contents) { Ok(decrypted) => decrypted, Err(e) => { - debug!("skipping entry {id}: decryption failed: {e}"); + warn!("skipping entry {id}: decryption failed: {e}"); continue; }, } @@ -1119,7 +1117,7 @@ impl SqliteClipboardDb { match decrypt_data(&contents) { Ok(decrypted) => decrypted, Err(e) => { - debug!("Skipping entry {id} in TUI window: decryption failed: {e}"); + warn!("Skipping entry {id} in TUI window: decryption failed: {e}"); continue; }, }