Skip to content

Commit

Permalink
fix(slog_test): remove redundant output key in NewLogger call
Browse files Browse the repository at this point in the history
Remove the unnecessary WithMessageKey("output") option from the NewLogger
function call in slog_test.go. This simplifies the logger initialization
and aligns it with the default behavior, as the "output
  • Loading branch information
godcong committed Sep 30, 2024
1 parent 7c856ed commit 24e5f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestLogger(t *testing.T) {
},
})

logger := NewLogger(WithLogger(slog.New(handler)), WithMessageKey("output"))
logger := NewLogger(WithLogger(slog.New(handler)))

defer func() { _ = logger.Close() }()
helper := log.NewHelper(logger)
Expand Down

0 comments on commit 24e5f94

Please sign in to comment.