Mercurial > dovecot > core-2.2
changeset 12142:0c22286d5fc7
doveadm-expire: Improved debug logging.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 21 Sep 2010 14:55:33 +0100 |
parents | dc98970aef85 |
children | c6783cbd0235 |
files | src/plugins/expire/doveadm-expire.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/expire/doveadm-expire.c Tue Sep 21 14:55:22 2010 +0100 +++ b/src/plugins/expire/doveadm-expire.c Tue Sep 21 14:55:33 2010 +0100 @@ -339,6 +339,14 @@ if (expire_dict == NULL) return; + if (ctx->iterate_single_user) { + if (doveadm_debug) { + i_debug("expire: Iterating only a single user, " + "ignoring expire database"); + } + return; + } + ectx = p_new(ctx->pool, struct doveadm_expire_mail_cmd_context, 1); ectx->module_ctx.super = ctx->v; MODULE_CONTEXT_SET(ctx, doveadm_expire_mail_cmd_module, ectx); @@ -347,7 +355,9 @@ are valid for optimization. */ if (!doveadm_expire_analyze_query(ctx)) return; - i_debug("expire: Searching only users listed in expire database"); + + if (doveadm_debug) + i_debug("expire: Searching only users listed in expire database"); dict = dict_init(expire_dict, DICT_DATA_TYPE_UINT32, "", doveadm_settings->base_dir);