Introduce a flag debug_logging on the core

This commit is contained in:
Hocuri
2022-05-09 15:34:16 +02:00
committed by Septias
parent fc30bbbe4f
commit 2fdab88d19
4 changed files with 53 additions and 37 deletions

View File

@@ -2,6 +2,7 @@
use std::collections::BTreeSet;
use std::path::{Path, PathBuf};
use std::sync::atomic;
use anyhow::{ensure, format_err, Context as _, Result};
use deltachat_derive::{FromSql, ToSql};
@@ -1287,6 +1288,7 @@ pub async fn delete_msgs(context: &Context, msg_ids: &[MsgId]) -> Result<()> {
.sql
.set_raw_config(Config::DebugLogging, Some("0"))
.await?;
context.debug_logging.store(0, atomic::Ordering::Release);
}
}