Skip to content

Commit

Permalink
Downgrade error to warning when deduplicator can't find entry since i…
Browse files Browse the repository at this point in the history
…t could have been deleted/moved/etc

Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jul 24, 2024
1 parent ca942bc commit 43df300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x11/src/deduplication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 43df300

Please sign in to comment.