Logger returns a "standard" testing logger, with debug level and common flaky errors ignored.
(t testing.TB)
| 17 | // Logger returns a "standard" testing logger, with debug level and common flaky |
| 18 | // errors ignored. |
| 19 | func Logger(t testing.TB) slog.Logger { |
| 20 | return slogtest.Make( |
| 21 | t, &slogtest.Options{IgnoreErrorFn: IgnoreLoggedError}, |
| 22 | ).Leveled(slog.LevelDebug) |
| 23 | } |
| 24 | |
| 25 | func IgnoreLoggedError(entry slog.SinkEntry) bool { |
| 26 | err, ok := slogtest.FindFirstError(entry) |
no outgoing calls