File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ type HandlerOptions struct {
73
73
// "file:line".
74
74
AddSource bool
75
75
76
- // Ignore records with levels above AtomicLevel .Level.
76
+ // Ignore records with levels above Level .Level.
77
77
// If nil, accept all levels.
78
- AtomicLevel * AtomicLevel
78
+ Level * AtomicLevel
79
79
80
80
// If set, ReplaceAttr is called on each attribute of the message,
81
81
// and the returned value is used instead of the original. If the returned
@@ -99,7 +99,7 @@ type commonHandler struct {
99
99
// Enabled reports whether l is less than or equal to the
100
100
// maximum level.
101
101
func (h * commonHandler ) Enabled (l Level ) bool {
102
- return l <= h .opts .AtomicLevel .Level ()
102
+ return l <= h .opts .Level .Level ()
103
103
}
104
104
105
105
func (h * commonHandler ) with (as []Attr ) * commonHandler {
You can’t perform that action at this time.
0 commit comments