From: Vsevolod Stakhov Date: Thu, 22 Mar 2018 17:07:14 +0000 (+0000) Subject: [Minor] Improve clamav debug logging X-Git-Tag: 1.7.2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69624d818569c70e721f0293e8bfdcca061a9e71;p=thirdparty%2Frspamd.git [Minor] Improve clamav debug logging --- diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 63e9f9197d..564f4162c1 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -481,10 +481,13 @@ local function clamav_check(task, rule) upstream:ok() data = tostring(data) local cached + rspamd_logger.debugm(N, task, '%s [%s]: got reply: %s', rule['symbol'], rule['type'], data) if data == 'stream: OK' then cached = 'OK' if rule['log_clean'] then rspamd_logger.infox(task, '%s [%s]: message is clean', rule['symbol'], rule['type']) + else + rspamd_logger.debugm(N, task, '%s [%s]: message is clean', rule['symbol'], rule['type']) end else local vname = string.match(data, 'stream: (.+) FOUND')