From 4f78e2e14e3f68b2c3f702073a633037d64e22ce Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sat, 11 Jul 2020 20:39:34 +0300 Subject: [PATCH] Do not show an error on IMAP connection failure It is annoying as it happens every time the server is rebooted. --- src/scheduler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduler.rs b/src/scheduler.rs index 3a8440a2a..81c1c413c 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -120,7 +120,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int Some(watch_folder) => { // connect and fake idle if unable to connect if let Err(err) = connection.connect_configured(&ctx).await { - error!(ctx, "imap connection failed: {}", err); + warn!(ctx, "imap connection failed: {}", err); return connection.fake_idle(&ctx, None).await; }