Skip to content

Commit 0008b59

Browse files
authored
fix(internal/log): log level DoNotChange (#2672)
- No longer logs at trace level when replacing runtime
1 parent 3a471d9 commit 0008b59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/log/options.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ type Option func(s *settings)
1515
// The level defaults to the lowest level, trce.
1616
func SetLevel(level Level) Option {
1717
return func(s *settings) {
18+
if level == DoNotChange {
19+
return
20+
}
1821
s.level = &level
1922
}
2023
}

0 commit comments

Comments
 (0)