]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission, mail-lua: Remove unnecessary mail_debug checks from debug logging
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 12 Jan 2023 13:38:41 +0000 (15:38 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:20:16 +0000 (14:20 +0200)
These aren't necessary, and they also prevent more specific debug filters
with log_debug.

src/plugins/mail-lua/mail-lua-plugin.c
src/submission/submission-backend-relay.c

index 146d95bb728ae7becafc2c87ef6eef746f2b8c37..47f374f753e52ded048a8e2abe694570822ddc1c 100644 (file)
@@ -33,8 +33,7 @@ static int mail_lua_call_hook(struct dlua_script *script,
        if (!dlua_script_has_function(script, hook))
                return 0;
 
-       if (user->mail_debug)
-               e_debug(user->event, "mail-lua: Calling %s(user)", hook);
+       e_debug(user->event, "mail-lua: Calling %s(user)", hook);
 
        dlua_push_mail_user(script->L, user);
 
index 95f7dd5c4ddb9a77d82f1ebdb7d4ed15dcdccfc7..b384c7dd587c3385010836b1fa93cbbe955d6a4e 100644 (file)
@@ -138,7 +138,7 @@ backend_relay_handle_relay_reply(struct submission_backend_relay *rbackend,
                        if (smtp_reply_is_remote(reply)) {
                                e_error(backend->event, "%s: %s",
                                        log_msg, smtp_reply_log(reply));
-                       } else if (user->mail_debug) {
+                       } else {
                                e_debug(backend->event, "%s: %s",
                                        log_msg, smtp_reply_log(reply));
                        }