From 9af36460c208e43433a8ad8ea832707cf121f164 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Wed, 29 Dec 2021 12:41:58 +0100 Subject: [PATCH] Improve the log (#2928) We had an unhelpful log in the Testing group: - it repeatedly says "src/imap.rs:1010: dc_receive_imf error: add_parts error" but the actual error is not shown - it says "deltachat-ffi/src/lib.rs:186: dc_get_config(): invalid key" but it doesn't say what key it's trying to set --- deltachat-ffi/src/lib.rs | 2 +- src/imap.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 1bb25400b..d32d5b8c9 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -183,7 +183,7 @@ pub unsafe extern "C" fn dc_get_config( .unwrap_or_default() .strdup(), Err(_) => { - warn!(ctx, "dc_get_config(): invalid key"); + warn!(ctx, "dc_get_config(): invalid key '{}'", &key); "".strdup() } } diff --git a/src/imap.rs b/src/imap.rs index d00847967..e882602b1 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -1228,7 +1228,7 @@ impl Imap { last_uid = Some(server_uid) } Err(err) => { - warn!(context, "dc_receive_imf error: {}", err); + warn!(context, "dc_receive_imf error: {:#}", err); } }; }