commit c8f2c2b: [Minor] Clickhouse: fix log

Anton Yuzhaninov citrin+git at citrin.ru
Tue Nov 5 19:35:07 UTC 2019


Author: Anton Yuzhaninov
Date: 2019-11-05 19:24:08 +0000
URL: https://github.com/rspamd/rspamd/commit/c8f2c2ba8db17da17c43f2932af4aebc6dd1ee12 (refs/pull/3139/head)

[Minor] Clickhouse: fix log
Fix log message, which was broken in c9e6e26319c08a0e440a9e27b9bf3743e32ad70b
nrows is 0 when clickhouse_send_data is called.

---
 src/plugins/lua/clickhouse.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index c4e30f1db..966543e3e 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -381,7 +381,7 @@ local function clickhouse_send_data(task, ev_base, why, gen_rows, cust_rows)
   local upstream = settings.upstream:get_upstream_round_robin()
   local ip_addr = upstream:get_addr():to_string(true)
   rspamd_logger.infox(log_object, "trying to send %s rows to clickhouse server %s; started as %s",
-      nrows, ip_addr, why)
+      #gen_rows + #cust_rows, ip_addr, why)
 
   local function gen_success_cb(what, how_many)
     return function (_, _)


More information about the Commits mailing list