From: Jonathan Amsterdam Date: Thu, 17 Aug 2023 20:00:08 +0000 (-0400) Subject: testing/slogtest: clarify that passed handler must be enabled at info X-Git-Tag: go1.22rc1~1057 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e016fabb55d0a50b6eeb9c85b0a5d42e27e8c8f3;p=gostls13.git testing/slogtest: clarify that passed handler must be enabled at info Fixes #62115. Change-Id: I1ecd3048ccbf2014bc1d561c7cd79a0c2fe8e4bd Reviewed-on: https://go-review.googlesource.com/c/go/+/520676 Run-TryBot: Jonathan Amsterdam Reviewed-by: Alan Donovan TryBot-Result: Gopher Robot --- diff --git a/src/testing/slogtest/slogtest.go b/src/testing/slogtest/slogtest.go index 6f6fa902d5..255d8bb964 100644 --- a/src/testing/slogtest/slogtest.go +++ b/src/testing/slogtest/slogtest.go @@ -36,6 +36,7 @@ type testCase struct { // // TestHandler installs the given Handler in a [slog.Logger] and // makes several calls to the Logger's output methods. +// The Handler should be enabled for levels Info and above. // // The results function is invoked after all such calls. // It should return a slice of map[string]any, one for each call to a Logger output method.