mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
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:
@@ -183,7 +183,7 @@ pub unsafe extern "C" fn dc_get_config(
|
|||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.strdup(),
|
.strdup(),
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
warn!(ctx, "dc_get_config(): invalid key");
|
warn!(ctx, "dc_get_config(): invalid key '{}'", &key);
|
||||||
"".strdup()
|
"".strdup()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1228,7 +1228,7 @@ impl Imap {
|
|||||||
last_uid = Some(server_uid)
|
last_uid = Some(server_uid)
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
warn!(context, "dc_receive_imf error: {}", err);
|
warn!(context, "dc_receive_imf error: {:#}", err);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user