Skip to content

Commit

Permalink
if stdout isn't a terminal, send logging to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
cgbaker committed Dec 1, 2020
1 parent 19af3df commit 208e9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func setLogFormat(format string) error {
isatty.IsCygwinTerminal(os.Stdout.Fd()) {
logWriter = conswriter.GetTerminal()
} else {
logWriter = os.Stdout
logWriter = os.Stderr
}

switch format {
Expand Down

0 comments on commit 208e9f9

Please sign in to comment.