Skip to content

Commit

Permalink
AddStacktraceAt: Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Aug 27, 2023
1 parent d5ebf65 commit b68ffcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exp/zapslog/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestAddCaller(t *testing.T) {
func TestAddStack(t *testing.T) {
r := require.New(t)
fac, logs := observer.New(zapcore.DebugLevel)
sl := slog.New(NewHandler(fac, AddStacktrace(slog.LevelDebug)))
sl := slog.New(NewHandler(fac, AddStacktraceAt(slog.LevelDebug)))
sl.Info("msg")

r.Len(logs.AllUntimed(), 1, "Expected exactly one entry to be logged")
Expand Down

0 comments on commit b68ffcf

Please sign in to comment.