summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-07-26 15:32:46 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-07-26 15:32:46 +0100
commita22bc00618cca0aada320dec67eef955a6f5c717 (patch)
tree523a74a3ea44d511fb0606bc1db6a710701c0357 /src/plugins/lua
parentad7d5442c5aa124a4ba2cc7b4698b18faf20b60f (diff)
downloadrspamd-a22bc00618cca0aada320dec67eef955a6f5c717.tar.gz
rspamd-a22bc00618cca0aada320dec67eef955a6f5c717.zip
Some polishing
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/clickhouse.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 2d32982bd..2572fc571 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -755,7 +755,7 @@ local function mk_remove_http_cb(upstream, params, ok_cb)
if code ~= 200 or err_message then
if not err_message then err_message = data end
local ip_addr = upstream:get_addr():to_string(true)
- rspamd_logger.errx(rspamd_config, "request failed on clickhouse server %s: %s",
+ rspamd_logger.errx(params.ev_base, "request failed on clickhouse server %s: %s",
ip_addr, err_message)
upstream:fail()
else
@@ -770,7 +770,7 @@ local function mk_remove_http_cb(upstream, params, ok_cb)
end
local function clickhouse_request(upstream, ok_cb, params)
- rspamd_logger.infox(rspamd_config, "clickhouse_request: %s", params.body) -- TODO: make debugm
+ rspamd_logger.debugm(N, rspamd_config, "clickhouse_request: %s", params.body)
params.callback = mk_remove_http_cb(upstream, params, ok_cb)
params.gzip = settings.use_gzip
@@ -814,7 +814,7 @@ end
local function parse_clickhouse_response(ev_base, cfg, data)
rspamd_logger.debugm(N, ev_base, "got clickhouse response: %s", data)
if data == nil then
- -- clickhouse returned no data: exiting
+ -- clickhouse returned no data (i.e. empty resultset): exiting
return
end
local function parse_string(s)