mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 16:06:30 +03:00
Introduce a flag debug_logging on the core
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user