diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-04 15:31:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-04 15:31:33 +0100 |
commit | 14f55f2132c874fb1249fca2bbdbf3d71ed216f0 (patch) | |
tree | f37a1a67e0d600ba2f483c505a44cf4f086e3347 /src | |
parent | 20a8767997253ec0259778ebc0838b74cf4d1dcb (diff) | |
download | rspamd-14f55f2132c874fb1249fca2bbdbf3d71ed216f0.tar.gz rspamd-14f55f2132c874fb1249fca2bbdbf3d71ed216f0.zip |
[Minor] Replies: Improve log messages
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/replies.lua | 8 |
1 files 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 |