commit dbcb955: [Minor] Clickhouse: Slight log improvement

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Nov 5 16:35:12 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-11-05 16:31:30 +0000
URL: https://github.com/rspamd/rspamd/commit/dbcb9552ae53d6d7f7150a3a229ae90382ea2246 (HEAD -> master)

[Minor] Clickhouse: Slight log improvement

---
 src/plugins/lua/clickhouse.lua | 5 +++--
 1 file 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
 


More information about the Commits mailing list