mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
Format configure() logs with error causes
This commit is contained in:
@@ -579,7 +579,7 @@ async fn try_imap_one_param(
|
||||
|
||||
let mut imap = match Imap::new(param, socks5_config.clone(), addr, provider_strict_tls, r) {
|
||||
Err(err) => {
|
||||
info!(context, "failure: {}", err);
|
||||
info!(context, "failure: {:#}", err);
|
||||
return Err(ConfigurationError {
|
||||
config: inf,
|
||||
msg: format!("{:#}", err),
|
||||
@@ -590,7 +590,7 @@ async fn try_imap_one_param(
|
||||
|
||||
match imap.connect(context).await {
|
||||
Err(err) => {
|
||||
info!(context, "failure: {}", err);
|
||||
info!(context, "failure: {:#}", err);
|
||||
Err(ConfigurationError {
|
||||
config: inf,
|
||||
msg: format!("{:#}", err),
|
||||
|
||||
Reference in New Issue
Block a user