]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add ANN name to log line when checking neural network
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 May 2018 12:36:39 +0000 (13:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 May 2018 12:36:39 +0000 (13:36 +0100)
src/plugins/lua/neural.lua

index c8a6f1173a806e05261192d7fe5223a5cbb4f9ec..9d0bbb446867acbcbe8897710517196f69b94e97 100644 (file)
@@ -290,7 +290,7 @@ local function ann_scores_filter(task)
       end
 
       local symscore = string.format('%.3f', score)
-      rspamd_logger.infox(task, 'ann score: %s', symscore)
+      rspamd_logger.infox(task, '%s ann score: %s', rule.name, symscore)
 
       if score > 0 then
         local result = score