commit 14f55f2: [Minor] Replies: Improve log messages
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Jun 4 14:35:07 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-06-04 15:31:33 +0100
URL: https://github.com/rspamd/rspamd/commit/14f55f2132c874fb1249fca2bbdbf3d71ed216f0 (HEAD -> master)
[Minor] Replies: Improve log messages
---
src/plugins/lua/replies.lua | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 30438c13f..e2783a0f9 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -91,9 +91,9 @@ local function replies_check(task)
return false
end
- local function redis_get_cb(err, data)
+ local function redis_get_cb(err, data, addr)
if err ~= nil then
- rspamd_logger.errx(task, 'redis_get_cb received error: %1', err)
+ rspamd_logger.errx(task, 'redis_get_cb error when reading data from %s: %s', addr:get_addr(), err)
return
end
if data and type(data) == 'string' and check_recipient(data) then
@@ -134,9 +134,9 @@ local function replies_check(task)
end
local function replies_set(task)
- local function redis_set_cb(err)
+ local function redis_set_cb(err, _, addr)
if err ~=nil then
- rspamd_logger.errx(task, 'redis_set_cb received error: %1', err)
+ rspamd_logger.errx(task, 'redis_set_cb error when writing data to %s: %s', addr:get_addr(), err)
end
end
-- If sender is unauthenticated return
More information about the Commits
mailing list