From 2469964a441eadb5a14614a86ac1fa3761d30c3a Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Mon, 3 Apr 2023 09:28:17 +0200 Subject: [PATCH] ref(sql): Do not warn if BLOBS_BACKUP_NAME does not exist (#4256) ref(sql): Dop not warn if BLOBS_BACKUP_NAME does not exist It is perfectly normal for this directory to not exist. --- src/sql.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/sql.rs b/src/sql.rs index 028644827..641b352ec 100644 --- a/src/sql.rs +++ b/src/sql.rs @@ -909,12 +909,14 @@ pub async fn remove_unused_files(context: &Context) -> Result<()> { } } Err(err) => { - warn!( - context, - "Housekeeping: Cannot read dir {}: {:#}.", - p.display(), - err - ); + if !p.ends_with(BLOBS_BACKUP_NAME) { + warn!( + context, + "Housekeeping: Cannot read dir {}: {:#}.", + p.display(), + err + ); + } } } }