From: Vsevolod Stakhov Date: Thu, 27 Feb 2020 15:36:53 +0000 (+0000) Subject: [Fix] Fix logging issue X-Git-Tag: 2.5~111 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f294479f789d43eda71d330a81af8bb2fd147603;p=rspamd.git [Fix] Fix logging issue --- diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 9fcb2d886..1897f0843 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -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