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
This commit is contained in:
Hocuri
2021-12-29 12:41:58 +01:00
committed by GitHub
parent 2e2d881e01
commit 9af36460c2
2 changed files with 2 additions and 2 deletions

View File

@@ -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()
}
}

View File

@@ -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);
}
};
}