]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix debug logging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 2 Nov 2019 13:41:35 +0000 (13:41 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 2 Nov 2019 13:41:35 +0000 (13:41 +0000)
lualib/lua_scanners/virustotal.lua

index 8e27b3f4892a3c8e3d800f773c9a8d7aeab2b373..8775100ba356254e9ee72b8b02b99411f9061dcc 100644 (file)
@@ -108,7 +108,7 @@ local function virustotal_check(task, content, digest, rule)
                   rule.log_prefix, hash)
             else
               lua_util.debugm(rule.name, task, '%s: hash %s clean (not found)',
-                  rule.log_prefix)
+                  rule.log_prefix, hash)
             end
           elseif code == 204 then
             -- Request rate limit exceeded
@@ -139,7 +139,7 @@ local function virustotal_check(task, content, digest, rule)
                         rule.log_prefix, hash)
                   else
                     lua_util.debugm(rule.name, task, '%s: hash %s clean (not found)',
-                        rule.log_prefix)
+                        rule.log_prefix, hash)
                   end
                 else
                   rspamd_logger.errx(task, 'invalid JSON reply: %s, body: %s, headers: %s',