aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2018-11-07 14:59:48 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2018-11-07 14:59:48 +0100
commit5c61535ed0bf4422109f50d2834a192195a201fe (patch)
tree227700ced3185c3373668842133bdbd291aa6ce5
parentcd77ddfbc7ee614765d65781e3eb6931c76c74ee (diff)
downloadrspamd-5c61535ed0bf4422109f50d2834a192195a201fe.tar.gz
rspamd-5c61535ed0bf4422109f50d2834a192195a201fe.zip
[Minor] Reputation Plugin - Debug Logging #2
-rw-r--r--src/plugins/lua/reputation.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index bf5462b0f..f1111c85c 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -996,12 +996,12 @@ local function reputation_redis_get_token(task, rule, token, continuation_cb)
end
elseif err then
- rspamd_logger.errx(task, 'got error while getting reputation keys %s: %s',
- key, err)
+ rspamd_logger.errx(task, 'rule %s - got error while getting reputation keys %s: %s',
+ rule['symbol'], key, err)
continuation_cb(err, key, nil)
else
- rspamd_logger.errx(task, 'got error while getting reputation keys %s: %s',
- key, "unknown error")
+ rspamd_logger.errx(task, 'rule %s - got error while getting reputation keys %s: %s',
+ rule['symbol'], key, "unknown error")
continuation_cb("unknown error", key, nil)
end
end
@@ -1020,8 +1020,8 @@ local function reputation_redis_set_token(task, rule, token, values, continuatio
local function redis_set_cb(err, data)
if err then
- rspamd_logger.errx(task, 'got error while setting reputation keys %s: %s',
- key, err)
+ rspamd_logger.errx(task, 'rule %s - got error while setting reputation keys %s: %s',
+ rule['symbol'], key, err)
if continuation_cb then
continuation_cb(err, key)
end