]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: doveadm-kick - Replace i_<log>() with e_<log>()
authorMarco Bettini <marco.bettini@open-xchange.com>
Wed, 31 Aug 2022 08:31:40 +0000 (08:31 +0000)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 6 Oct 2022 18:01:26 +0000 (18:01 +0000)
src/doveadm/doveadm-kick.c

index 62c59d0bb0edb1c924ef4781d7ca35fba6703286..eebdc7c994d2c2a1c70f0e72e8ea3589d0730a0a 100644 (file)
@@ -19,6 +19,7 @@ struct kick_session {
 };
 
 struct kick_context {
+       struct event *event;
        struct who_context who;
        enum doveadm_client_type conn_type;
        ARRAY(struct kick_session) kicks;
@@ -32,7 +33,8 @@ kick_user_anvil_callback(const char *reply, struct kick_context *ctx)
 
        if (reply != NULL) {
                if (str_to_uint(reply, &count) < 0)
-                       i_error("Unexpected reply from anvil: %s", reply);
+                       e_error(ctx->event,
+                               "Unexpected reply from anvil: %s", reply);
                else
                        ctx->kicked_count += count;
        }
@@ -126,6 +128,7 @@ static void cmd_kick(struct doveadm_cmd_context *cctx)
                return;
        }
        ctx.conn_type = cctx->conn_type;
+       ctx.event = cctx->event;
        ctx.who.pool = pool_alloconly_create("kick pids", 10240);
 
        if (who_parse_args(&ctx.who, passdb_field, &dest_ip, masks) != 0) {