]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dict: Use the dict name as the log prefix
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 18 May 2021 17:18:45 +0000 (20:18 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 23 Jul 2021 18:15:27 +0000 (18:15 +0000)
Otherwise if there are multiple dicts it may not be obvious which one is
causing the errors.

src/dict/dict-connection.c

index 8e36f5bffbfeba3bf368939d3cf94b42d23a11e0..d32adc9712e4700732eb523ba18aeb9d7161ffa9 100644 (file)
@@ -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];