mirror of
https://github.com/chatmail/core.git
synced 2026-05-21 15:56:30 +03:00
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:
committed by
GitHub
parent
e016440fb3
commit
2469964a44
@@ -909,6 +909,7 @@ pub async fn remove_unused_files(context: &Context) -> Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
if !p.ends_with(BLOBS_BACKUP_NAME) {
|
||||||
warn!(
|
warn!(
|
||||||
context,
|
context,
|
||||||
"Housekeeping: Cannot read dir {}: {:#}.",
|
"Housekeeping: Cannot read dir {}: {:#}.",
|
||||||
@@ -918,6 +919,7 @@ pub async fn remove_unused_files(context: &Context) -> Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user