From: Vsevolod Stakhov Date: Tue, 5 Nov 2019 16:31:30 +0000 (+0000) Subject: [Minor] Clickhouse: Slight log improvement X-Git-Tag: 2.2~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbcb9552ae53d6d7f7150a3a229ae90382ea2246;p=rspamd.git [Minor] Clickhouse: Slight log improvement --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 32fe5c25e..c4e30f1db 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -945,8 +945,9 @@ local function clickhouse_maybe_send_data_periodic(cfg, ev_base, now) if last_collection > 0 and settings.limits.max_interval > 0 then if now - last_collection > settings.limits.max_interval then need_collect = true - reason = string.format('limit of time since last collection has been reached: %d seconds passed', - (now - last_collection) - settings.limits.max_interval) + reason = string.format('limit of time since last collection has been reached: %d seconds passed ' .. + '(%d seconds trigger)', + (now - last_collection), settings.limits.max_interval) end end