Skip to content

Commit

Permalink
redirect logs into stderr instead of stdout, fix #969
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Aug 2, 2024
1 parent f348c51 commit 1b5b448
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# v2.5.22
IMPROVEMENTS
- redirect logs into stderr instead of stdout, fix [969](https://github.com/Altinity/clickhouse-backup/issues/969)

# v2.5.21
IMPROVEMENTS
- switch from `docker-compose` (python) to `docker compose` (golang)
- add parallel integration test execution fix [888](https://github.com/Altinity/clickhouse-backup/issues/888)
-

BUG FIXES
- properly handle log_pointer=1 corner case for `check_replica_before_attach: true`, fix [967](https://github.com/Altinity/clickhouse-backup/issues/967)
- properly handle empty output for `list` command when `remote_storage: custom`, fix [963](https://github.com/Altinity/clickhouse-backup/issues/963), thanks @straysh
Expand Down
2 changes: 1 addition & 1 deletion cmd/clickhouse-backup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
)

func main() {
log.SetHandler(logcli.New(os.Stdout))
log.SetHandler(logcli.New(os.Stderr))
cliapp := cli.NewApp()
cliapp.Name = "clickhouse-backup"
cliapp.Usage = "Tool for easy backup of ClickHouse with cloud support"
Expand Down
2 changes: 1 addition & 1 deletion test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var dockerPool *pool.ObjectPool

// setup log level
func init() {
log.SetHandler(logcli.New(os.Stdout))
log.SetHandler(logcli.New(os.Stderr))
logLevel := "info"
if os.Getenv("LOG_LEVEL") != "" && os.Getenv("LOG_LEVEL") != "info" {
logLevel = os.Getenv("LOG_LEVEL")
Expand Down

0 comments on commit 1b5b448

Please sign in to comment.