From 7c90fb07238b6b3483d6e9c2389beff39c83c18f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 17 Aug 2020 15:39:19 +0300 Subject: [PATCH] imap-hibernate: Add imap_client_unhibernate_retried event --- src/imap-hibernate/imap-client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/imap-hibernate/imap-client.c b/src/imap-hibernate/imap-client.c index a3173571ac..ac38a31cfa 100644 --- a/src/imap-hibernate/imap-client.c +++ b/src/imap-hibernate/imap-client.c @@ -262,6 +262,10 @@ static bool imap_client_try_move_back(struct imap_client *client) return TRUE; } + e_debug(event_create_passthrough(client->event)-> + set_name("imap_client_unhibernate_retried")-> + add_str("error", error)->event(), + "Unhibernation failed: %s - retrying", error); /* Stop listening for client's IOs while waiting for the next reconnection attempt. However if we got here because of an external notification keep waiting to see if client sends any IO, since that -- 2.47.3