db: *warn* the users when encrypted entries cannot be decrypted

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1cfe9994b640cdf571007b5c52b0a2bc6a6a6964
This commit is contained in:
raf 2026-04-04 23:08:54 +03:00
commit d013901396
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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;
},
}