]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Log aborted logins with "Login aborted" prefix rather than "Disconnected"
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 9 Aug 2024 06:37:13 +0000 (09:37 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 19 Aug 2024 08:34:22 +0000 (08:34 +0000)
This makes it easier to search the logs for login failures without seeing
post-login disconnections.

src/login-common/client-common.c

index 20fc10eae5a08e706d314e6ae7bd7da60820307b..0bf436af156cad415750f2b0a55f2a95665f5677 100644 (file)
@@ -372,7 +372,7 @@ static void login_aborted_event(struct client *client, const char *reason)
        e->add_int("connected_usecs", timeval_diff_usecs(&ioloop_timeval,
                                                         &client->created));
 
-       e_info(e->event(), "Disconnected: %s", reason);
+       e_info(e->event(), "Login aborted: %s", reason);
 }
 
 void client_disconnect(struct client *client, const char *reason)