From 9867ac5add724a5f0a4a808bdfe5bc39713c8b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martti=20Rannanj=C3=A4rvi?= Date: Wed, 29 Aug 2018 11:04:10 +0300 Subject: [PATCH] lib: Use basename of unix socket path as event log prefix This is to make the prefix consistent with other unix socket loggings in Dovecot. --- src/lib/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/connection.c b/src/lib/connection.c index ed3d129ed0..8f49323233 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -14,6 +14,7 @@ #include "connection.h" #include +#include static void connection_idle_timeout(struct connection *conn) { @@ -321,7 +322,7 @@ void connection_init_client_unix(struct connection_list *list, event_field_clear(conn->event, "client_port"); event_set_append_log_prefix(conn->event, t_strdup_printf("(%s): ", - conn->name)); + basename(conn->name))); } void connection_init_from_streams(struct connection_list *list,