commit | c8adb6e14cbacec2fddb88e2f1b8885a12a2bd04 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Dec 29 17:08:32 2022 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Fri Dec 30 16:26:34 2022 +0000 |
tree | 70010fc10c961e972f883a37e5257971ae55b7ea | |
parent | 02c3fc3b3eb47efd77e97b19ee18522d74ebabc0 [diff] |
slog: add missing calls to Handler.Enabled Add an enabled check in handlerWriter, which is called to send output from the log package through a handler. Also add one to logDepthErr and remove it from logPC, so that the check comes earlier. Change-Id: Ia9f988093e2cd1551539470fc0c3733b3de8d7a3 Reviewed-on: https://go-review.googlesource.com/c/exp/+/459558 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Marko Kungla <marko.kungla@gmail.com> Reviewed-by: Alan Donovan <adonovan@google.com>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.