diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-05 16:31:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-05 16:31:30 +0000 |
commit | dbcb9552ae53d6d7f7150a3a229ae90382ea2246 (patch) | |
tree | 1b3c30ef4d546c67ebfb43a3ade2c4a77858c316 | |
parent | 08e517da1b18105b16fe7124f304f248a7a86e2f (diff) | |
download | rspamd-dbcb9552ae53d6d7f7150a3a229ae90382ea2246.tar.gz rspamd-dbcb9552ae53d6d7f7150a3a229ae90382ea2246.zip |
[Minor] Clickhouse: Slight log improvement
-rw-r--r-- | src/plugins/lua/clickhouse.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 |