From 43df3007be00c16f859485949d134e83f8ccf39a Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Wed, 24 Jul 2024 10:55:20 -0700 Subject: [PATCH] Downgrade error to warning when deduplicator can't find entry since it could have been deleted/moved/etc Signed-off-by: Alex Saveau --- x11/src/deduplication.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x11/src/deduplication.rs b/x11/src/deduplication.rs index 22f897c..005f6cb 100644 --- a/x11/src/deduplication.rs +++ b/x11/src/deduplication.rs @@ -3,7 +3,7 @@ use std::{ hash::{Hash, Hasher}, }; -use log::{error, info}; +use log::{error, info, warn}; use ringboard_sdk::{ core::{ dirs::data_dir, @@ -123,7 +123,7 @@ impl CopyDeduplication { .and_then(|id| { let id = composite_id(kind, id); let entry = unsafe { self.database.get(id) } - .inspect_err(|e| error!("Failed to get entry for ID: {id:?}\nError: {e:?}")) + .inspect_err(|e| warn!("Failed to get entry for ID: {id:?}\nError: {e:?}")) .ok()?; match data { CopyData::Slice(data) => {