Skip to content

Commit

Permalink
logging: Warnings go to stderr
Browse files Browse the repository at this point in the history
Fixes #107

Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Dec 18, 2021
1 parent b70535e commit ae0c311
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 @@ -83,7 +83,7 @@ func Warnf(m string, a ...interface{}) string {
return fmt.Sprintf("%s %s\n", warn, fmt.Sprintf(m, a...))
}
func Warn(m string, a ...interface{}) {
Print(Warnf(m, a...))
PrintWithFile(os.Stderr, Warnf(m, a...))
}

func Fatalf(m string, a ...interface{}) string {
Expand Down

0 comments on commit ae0c311

Please sign in to comment.