diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-22 14:41:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-22 14:41:46 +0000 |
commit | ff982f60325a8cac8517f8383377c01a8dfb0a37 (patch) | |
tree | ecae77d71dd68ff2da0c73adb35c726c7224023e /src | |
parent | 0fb2347cce41a52c93405cf35257eafb3efb2565 (diff) | |
download | rspamd-ff982f60325a8cac8517f8383377c01a8dfb0a37.tar.gz rspamd-ff982f60325a8cac8517f8383377c01a8dfb0a37.zip |
Add some temporary logs for fann plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/fann_scores.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua index 0be8ad37e..5c85262b3 100644 --- a/src/plugins/lua/fann_scores.lua +++ b/src/plugins/lua/fann_scores.lua @@ -52,8 +52,10 @@ local function fann_scores_filter(task) local out = fann:test(nsymbols, fann_input) local result = rspamd_util.tanh(2 * (out[1] - 0.5)) + local symscore = string.format('%.3f', out[1]) + rspamd_logger.infox(task, 'fann score: %s', symscore) - task:insert_result(fann_symbol, result, string.format('%.3f', out[1])) + task:insert_result(fann_symbol, result, symscore) end if not rspamd_fann.is_enabled() then |