Skip to content

Commit

Permalink
add new nop fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Okhlopkov <[email protected]>
  • Loading branch information
Pavel Okhlopkov committed Oct 25, 2024
1 parent 52d0376 commit e6f890f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/unilogger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ type Options struct {
}

func NewNop() *Logger {
return &Logger{
logger: slog.New(slog.NewTextHandler(io.Discard, &slog.HandlerOptions{})),
}
return NewLogger(Options{
Output: io.Discard,
})
}

func NewLogger(opts Options) *Logger {
Expand Down

0 comments on commit e6f890f

Please sign in to comment.