Skip to content

Commit

Permalink
exercise debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
muir committed Dec 28, 2023
1 parent b07c3f8 commit b2d3fb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xoptest/xoptestutil/cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,14 @@ var MessageCases = []struct {
Msg("no foobar")
log.Trace().Stringer("do", sc).Msg("yes, foobar")
assert.Equal(t, 1, callCount, "stringer called once")
noSkip := log.Sub().MinLevel(xopnum.DebugLevel).Log()
noSkip.Debug().
Stringer("stringer", sc).
String("string", "blaf").
Any("null", nil).
Error("yes", fmt.Errorf("blaf")).
Msg("yes foobar")
assert.Equal(t, 2, callCount, "stringer called twice")
MicroNap()
log.Done()
},
Expand Down

0 comments on commit b2d3fb4

Please sign in to comment.