Skip to content

Commit

Permalink
fix(internal/log): log level DoNotChange (#2672)
Browse files Browse the repository at this point in the history
- No longer logs at trace level when replacing runtime
  • Loading branch information
qdm12 committed Jul 18, 2022
1 parent 3a471d9 commit 0008b59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/log/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ type Option func(s *settings)
// The level defaults to the lowest level, trce.
func SetLevel(level Level) Option {
return func(s *settings) {
if level == DoNotChange {
return
}
s.level = &level
}
}
Expand Down

0 comments on commit 0008b59

Please sign in to comment.