diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-17 12:46:02 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-17 12:46:02 +0200 |
commit | fd4d021a48419db5bfffbef56c75be9f84bab185 (patch) | |
tree | f08ef6c45f6d3f475c870da5c1b0a45e28df46c4 /src/plugins/lua/fann_classifier.lua | |
parent | d8e7133b3af3e169e894e436c24286d824b255d0 (diff) | |
download | rspamd-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.lua | 6 |
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 |