]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Improve clamav debug logging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 22 Mar 2018 17:07:14 +0000 (17:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 22 Mar 2018 17:07:14 +0000 (17:07 +0000)
src/plugins/lua/antivirus.lua

index 63e9f9197dc79c0d0fb54bfcb200fe0f76d20c88..564f4162c193a1d59db6ff9dee7ddb17a3c1a33d 100644 (file)
@@ -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')