aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/fann_classifier.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-17 12:46:02 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-17 12:46:02 +0200
commitfd4d021a48419db5bfffbef56c75be9f84bab185 (patch)
treef08ef6c45f6d3f475c870da5c1b0a45e28df46c4 /src/plugins/lua/fann_classifier.lua
parentd8e7133b3af3e169e894e436c24286d824b255d0 (diff)
downloadrspamd-fd4d021a48419db5bfffbef56c75be9f84bab185.tar.gz
rspamd-fd4d021a48419db5bfffbef56c75be9f84bab185.zip
[Minor] Use new logging API everywhere
Diffstat (limited to 'src/plugins/lua/fann_classifier.lua')
-rw-r--r--src/plugins/lua/fann_classifier.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/fann_classifier.lua b/src/plugins/lua/fann_classifier.lua
index 94261839b..c4110981d 100644
--- a/src/plugins/lua/fann_classifier.lua
+++ b/src/plugins/lua/fann_classifier.lua
@@ -89,7 +89,7 @@ local function maybe_load_fann(task, continue_cb, call_if_fail)
{key, 'version', 'data', 'spam', 'ham'} -- arguments
)
if not ret then
- rspamd_logger.err(task, 'got error connecting to redis')
+ rspamd_logger.errx(task, 'got error connecting to redis')
end
end
@@ -120,7 +120,7 @@ local function maybe_load_fann(task, continue_cb, call_if_fail)
{key, 'version'} -- arguments
)
if not ret then
- rspamd_logger.err(task, 'got error connecting to redis')
+ rspamd_logger.errx(task, 'got error connecting to redis')
end
end
@@ -218,7 +218,7 @@ local function save_fann(task, is_spam)
conn:add_cmd('HINCRBY', {key, 'ham', 1})
end
else
- rspamd_logger.err(task, 'got error connecting to redis')
+ rspamd_logger.errx(task, 'got error connecting to redis')
end
end