Skip to content

Commit 93e26a7

Browse files
committed
slog: rename HandlerOptions.AtomicLevel to Level
Change-Id: Iac666c8486d72629cda346b340915c2a89dd50b7 Reviewed-on: https://go-review.googlesource.com/c/exp/+/429837 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
1 parent c79614e commit 93e26a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

slog/handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ type HandlerOptions struct {
7373
// "file:line".
7474
AddSource bool
7575

76-
// Ignore records with levels above AtomicLevel.Level.
76+
// Ignore records with levels above Level.Level.
7777
// If nil, accept all levels.
78-
AtomicLevel *AtomicLevel
78+
Level *AtomicLevel
7979

8080
// If set, ReplaceAttr is called on each attribute of the message,
8181
// and the returned value is used instead of the original. If the returned
@@ -99,7 +99,7 @@ type commonHandler struct {
9999
// Enabled reports whether l is less than or equal to the
100100
// maximum level.
101101
func (h *commonHandler) Enabled(l Level) bool {
102-
return l <= h.opts.AtomicLevel.Level()
102+
return l <= h.opts.Level.Level()
103103
}
104104

105105
func (h *commonHandler) with(as []Attr) *commonHandler {

0 commit comments

Comments
 (0)