nikepan / clickhouse-bulk

Collects many small inserts to ClickHouse and send in big inserts
Apache License 2.0
474 stars 86 forks source link

Better config read error logging #38

Open chocolatkey opened 3 years ago

chocolatkey commented 3 years ago

Currently, if you load an improperly formatted config JSON, e.g. by adding // comments to it, then the log out put will say the file was not found, which is not necessarily true. This fixes that by displaying the correct error. It also shortcuts and returns when there's an error loading any config because that causes a fatal exit anyway