Skip to content

Commit

Permalink
fix(internal/log): log level DoNotChange
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 14, 2022
1 parent 3a471d9 commit b44dcbd
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 b44dcbd

Please sign in to comment.