]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Add "Disconnected: " prefix to all disconnection log lines
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Feb 2021 15:47:13 +0000 (17:47 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 11 Mar 2021 11:19:09 +0000 (11:19 +0000)
It's currently not very clear that all these different log lines are about
the disconnection event.

src/imap/imap-client.c

index 49102f87b20589a89f985c5a20b375134b6de0ed..c1d42792ad39fc17fb1cbf37a66db33c3d3ea9a7 100644 (file)
@@ -425,7 +425,7 @@ static const char *client_get_commands_status(struct client *client)
 
 static void client_log_disconnect(struct client *client, const char *reason)
 {
-       e_info(client->event, "%s %s", reason, client_stats(client));
+       e_info(client->event, "Disconnected: %s %s", reason, client_stats(client));
 }
 
 static void client_default_destroy(struct client *client, const char *reason)