]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Clickhouse: fix log 3139/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 5 Nov 2019 19:24:08 +0000 (19:24 +0000)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 5 Nov 2019 19:24:08 +0000 (19:24 +0000)
Fix log message, which was broken in c9e6e26319c08a0e440a9e27b9bf3743e32ad70b
nrows is 0 when clickhouse_send_data is called.

src/plugins/lua/clickhouse.lua

index c4e30f1dbc9319c5871461a498221ec8794d6820..966543e3e31b3d676c28ede0173023c074a79595 100644 (file)
@@ -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 (_, _)