From ff982f60325a8cac8517f8383377c01a8dfb0a37 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 22 Dec 2015 14:41:46 +0000 Subject: Add some temporary logs for fann plugin --- src/plugins/lua/fann_scores.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins') 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 -- cgit v1.2.3