]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-hibernate: Add imap_client_unhibernate_retried event
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 17 Aug 2020 12:39:19 +0000 (15:39 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 21 Aug 2020 08:51:13 +0000 (08:51 +0000)
src/imap-hibernate/imap-client.c

index a3173571aca70e5636838eb79698ca8075cf4957..ac38a31cfa65b8ae5552a80f967575f0ffa2437f 100644 (file)
@@ -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