Closed lainiwa closed 3 months ago
currently not, could you help us with race conditions when switching to zerolog https://github.com/Altinity/clickhouse-backup/pull/670, this log library can write different log level to different steams
Unfortunately I don't think I could help as my golang experience is none.
Anyways, maybe #670 is only tangentially related to this issue:
writing different log levels to different streams might be useful for daemon-like services, like clickhouse-backup server
or clickhouse-backup watch
,
but I think CLI utils should redirect strictly all logs to stderr, as opposed to the actual return value.
ok. let's change current behavior
Currently clickhouse-backup logs everything to stdout. This makes it harder to script.
An example:
This works, but it will swallow all the non-error info, that might be valuable otherwise.