Even nicer logging: Add ok_or_log() and more (#2284)

Co-authored-by: Floris Bruynooghe <flub@devork.be>
This commit is contained in:
Hocuri
2021-03-13 21:06:37 +01:00
committed by GitHub
parent 4ab90f7069
commit 98fc559536
5 changed files with 90 additions and 47 deletions

View File

@@ -676,7 +676,7 @@ async fn export_backup(context: &Context, dir: impl AsRef<Path>) -> Result<()> {
.sql
.set_raw_config_int(context, "backup_time", now as i32)
.await?;
sql::housekeeping(context).await.log(context);
sql::housekeeping(context).await.ok_or_log(context);
context
.sql