]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix logging issue
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 27 Feb 2020 15:36:53 +0000 (15:36 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 27 Feb 2020 15:36:53 +0000 (15:36 +0000)
src/plugins/lua/neural.lua

index 9fcb2d8861809305555a9fbf78955b6a5cd9ad19..1897f0843da0f840cd323472099390238f1c139b 100644 (file)
@@ -508,13 +508,12 @@ local function ann_push_task_result(rule, task, verdict, score, set)
           })
     else
       lua_util.debugm(N, task,
-          'do not push data to key %s: train condition not satisfied; reason: not checked existing ANNs',
-          set.ann.redis_key)
+          'do not push data: train condition not satisfied; reason: not checked existing ANNs')
     end
   else
     lua_util.debugm(N, task,
         'do not push data to key %s: train condition not satisfied; reason: %s',
-        set.ann.redis_key,
+        (set.ann or {}).redis_key,
         skip_reason)
   end
 end