diff options
| author | Jonathan Amsterdam <jba@google.com> | 2023-08-17 16:00:08 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2023-08-29 11:43:03 +0000 |
| commit | e016fabb55d0a50b6eeb9c85b0a5d42e27e8c8f3 (patch) | |
| tree | ccdc1a4059637dc1cd3b4e9fc87d539a6ea4ea9f /src/testing | |
| parent | eaae2d45c76d2d27e1b4c39ba57dd1582ab26491 (diff) | |
| download | go-e016fabb55d0a50b6eeb9c85b0a5d42e27e8c8f3.tar.xz | |
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 <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/slogtest/slogtest.go | 1 |
1 files changed, 1 insertions, 0 deletions
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. |
