From d7b4d913b5695ac580103176db03fcd628901b89 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 13 Apr 2022 20:06:37 +0100 Subject: [PATCH] [Minor] Add some more debug to mime_types --- src/plugins/lua/mime_types.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 75035523e..ce784b10e 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -220,6 +220,8 @@ local function check_mime_type(task) local function check_filename(fname, ct, is_archive, part, detected_ext, nfiles) + lua_util.debugm(N, task, "check filename: %s, ct=%s, is_archive=%s, detected_ext=%s, nfiles=%s", + fname, ct, is_archive, detected_ext, nfiles) local has_bad_unicode, char, ch_pos = rspamd_util.has_obscured_unicode(fname) if has_bad_unicode then task:insert_result(settings.symbol_bad_unicode, 1.0, -- 2.39.5