File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 88 "slices"
99 "time"
1010
11- "go.unistack.org/micro/v4/logger"
1211 "go.unistack.org/micro/v4/meter"
1312)
1413
@@ -86,7 +85,7 @@ func NewOptions(opts ...Option) Options {
8685 return options
8786}
8887
89- func WithCallerEnabled (b bool ) logger. Option {
88+ func WithCallerEnabled (b bool ) Option {
9089 return func (o * Options ) {
9190 o .AddCaller = b
9291 }
Original file line number Diff line number Diff line change @@ -213,9 +213,9 @@ func (s *slogLogger) Init(opts ...logger.Option) error {
213213 }
214214
215215 s .handler = & wrapper {
216- h : h .WithAttrs (attrs ),
217- level : atomic .LoadInt64 (& s .handler .level ),
216+ h : h .WithAttrs (attrs ),
218217 }
218+
219219 atomic .StoreInt64 (& s .handler .level , int64 (loggerToSlogLevel (s .opts .Level )))
220220 s .mu .Unlock ()
221221
You can’t perform that action at this time.
0 commit comments