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.
This commit is contained in:
Floris Bruynooghe
2023-04-03 09:28:17 +02:00
committed by GitHub
parent e016440fb3
commit 2469964a44

View File

@@ -909,12 +909,14 @@ pub async fn remove_unused_files(context: &Context) -> Result<()> {
} }
} }
Err(err) => { Err(err) => {
warn!( if !p.ends_with(BLOBS_BACKUP_NAME) {
context, warn!(
"Housekeeping: Cannot read dir {}: {:#}.", context,
p.display(), "Housekeeping: Cannot read dir {}: {:#}.",
err p.display(),
); err
);
}
} }
} }
} }