From 1d34e1f27a23077700dfd0eaac95c44fc00806c9 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 12 Jun 2020 11:57:38 +0200 Subject: [PATCH] attempt to fix #1589 -- if we trigger a reconnect we don't need to "error!" which shows a toast to the user. the next reconnect will report if it can't connect. --- src/scheduler.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scheduler.rs b/src/scheduler.rs index 4d2488561..c77c7bb36 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -109,7 +109,7 @@ async fn fetch(ctx: &Context, connection: &mut Imap) { // fetch if let Err(err) = connection.fetch(&ctx, &watch_folder).await { connection.trigger_reconnect(); - error!(ctx, "{}", err); + warn!(ctx, "{}", err); } } None => { @@ -131,7 +131,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int // fetch if let Err(err) = connection.fetch(&ctx, &watch_folder).await { connection.trigger_reconnect(); - error!(ctx, "{}", err); + warn!(ctx, "{}", err); } // idle @@ -141,7 +141,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int .await .unwrap_or_else(|err| { connection.trigger_reconnect(); - error!(ctx, "{}", err); + warn!(ctx, "{}", err); InterruptInfo::new(false, None) }) } else {