From: Vsevolod Stakhov Date: Thu, 4 Jun 2020 14:31:33 +0000 (+0100) Subject: [Minor] Replies: Improve log messages X-Git-Tag: 2.6~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14f55f2132c874fb1249fca2bbdbf3d71ed216f0;p=thirdparty%2Frspamd.git [Minor] Replies: Improve log messages --- diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index 30438c13f2..e2783a0f9f 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