Skip to content

Commit

Permalink
Fix default logger assigning
Browse files Browse the repository at this point in the history
  • Loading branch information
apstndb committed Nov 6, 2024
1 parent bd0088b commit a9fbef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {
// Parse manually because testing.Verbose() panics unless flag.Parse() has done.
for _, arg := range os.Args {
if strings.EqualFold(arg, "-test.v=true") || strings.EqualFold(arg, "-v") {
return
Logger = log.New(os.Stderr, "", log.LstdFlags)
}
}
}
Expand Down

0 comments on commit a9fbef9

Please sign in to comment.