housepower / clickhouse_sinker

Easily load data from kafka to ClickHouse
https://housepower.github.io/clickhouse_sinker
Apache License 2.0
516 stars 118 forks source link

print task name on buf size log line #38

Closed josepowera closed 4 years ago

josepowera commented 4 years ago

It would be greate to printout taskname of kafka topic when we see buf size line.

Why? Because we quickly see what task name is fully using max buf size - and is therefore full power processing at the moment.

current:

2020/02/14 18:59:46  [1;34m[I] csv_dsp_dsprtbbids_raw tick [0m                                                                                                                                         
2020/02/14 18:59:46  [1;34m[I] buf size: 3575 [0m   

expected:

2020/02/14 18:59:46  [1;34m[I] csv_dsp_dsprtbbids_raw tick [0m      
2020/02/14 18:59:46  [1;34m[I] buf size: 3575 [0m   csv_dsp_dsprtbbids_raw 
sundy-li commented 4 years ago

Yes.