mirror of
https://github.com/golang/go
synced 2024-11-26 14:56:18 +00:00
3d61de41a2
This adds a package-level variable, slog.DiscardHandler, which is a slog.Handler which performs no output. This serves a similar purpose to io.Discard. Fixes #62005 Change-Id: Ia8babc55f860dec9b663a5c400090a7669608fd5 GitHub-Last-Rev: 0a611174ee8819a2f4e1b8e196a60d5acc6ef9f7 GitHub-Pull-Request: golang/go#70296 Reviewed-on: https://go-review.googlesource.com/c/go/+/626486 Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2 lines
48 B
Plaintext
2 lines
48 B
Plaintext
pkg log/slog, var DiscardHandler Handler #62005
|