From: Timo Sirainen Date: Tue, 18 May 2021 17:18:45 +0000 (+0300) Subject: dict: Use the dict name as the log prefix X-Git-Tag: 2.3.17~264 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5387d77789e8a5d9d2388f3cad4a9865f3cb9a8;p=thirdparty%2Fdovecot%2Fcore.git dict: Use the dict name as the log prefix Otherwise if there are multiple dicts it may not be obvious which one is causing the errors. --- diff --git a/src/dict/dict-connection.c b/src/dict/dict-connection.c index 8e36f5bffb..d32adc9712 100644 --- a/src/dict/dict-connection.c +++ b/src/dict/dict-connection.c @@ -87,6 +87,8 @@ static int dict_connection_dict_init(struct dict_connection *conn) conn->name); return -1; } + event_set_append_log_prefix(conn->conn.event, + t_strdup_printf("%s: ", conn->name)); event_add_str(conn->conn.event, "dict_name", conn->name); uri = strlist[i+1];