Skip to content

Commit

Permalink
Redirect logging location reminder to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Mar 25, 2024
1 parent adf0924 commit a9de2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ func InitConfig() {
log.Errorf("Failed to access specified log file. Error: %v", err)
os.Exit(1)
}
fmt.Printf("Logging.LogLocation is set to %s. All logs are redirected to the log file.\n", logLocation)
fmt.Fprintf(os.Stderr, "Logging.LogLocation is set to %s. All logs are redirected to the log file.\n", logLocation)
log.SetOutput(f)
}

Expand Down

0 comments on commit a9de2b6

Please sign in to comment.