]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: auth-worker-client: Log errors via events
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 31 Oct 2019 14:21:35 +0000 (16:21 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 12 Mar 2021 12:18:13 +0000 (12:18 +0000)
src/auth/auth-worker-client.c

index 11fad490cd9f3d35ac9c9886fda9e84f07e0dec8..a358857ee0eef14c9a5ca8a7dcf5aee123cb172b 100644 (file)
@@ -746,12 +746,14 @@ static int auth_worker_client_handshake_args(struct connection *conn, const char
 
        if (str_array_length(args) < 3 ||
            strcmp(args[0], "DBHASH") != 0) {
-               i_error("BUG: Invalid input: %s", t_strarray_join(args, "\t"));
+               e_error(conn->event, "BUG: Invalid input: %s",
+                       t_strarray_join(args, "\t"));
                return -1;
        }
 
        if (!auth_worker_verify_db_hash(args[1], args[2])) {
-               i_error("Auth worker sees different passdbs/userdbs "
+               e_error(conn->event,
+                       "Auth worker sees different passdbs/userdbs "
                        "than auth server. Maybe config just changed "
                        "and this goes away automatically?");
                return -1;
@@ -771,7 +773,8 @@ auth_worker_client_input_args(struct connection *conn, const char *const *args)
 
        if (str_array_length(args) < 3 ||
            str_to_uint(args[0], &id) < 0) {
-               i_error("BUG: Invalid input: %s", t_strarray_join(args, "\t"));
+               e_error(conn->event, "BUG: Invalid input: %s",
+                       t_strarray_join(args, "\t"));
                return -1;
        }