]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Clickhouse: Slight log improvement
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Nov 2019 16:31:30 +0000 (16:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Nov 2019 16:31:30 +0000 (16:31 +0000)
src/plugins/lua/clickhouse.lua

index 32fe5c25e7027e385acacaeb60803ed70ac7fe9a..c4e30f1dbc9319c5871461a498221ec8794d6820 100644 (file)
@@ -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