]> Cypherpunks repositories - gostls13.git/commit
log: don't format if writing to io.Discard
authorIan Lance Taylor <iant@golang.org>
Thu, 9 Sep 2021 21:49:41 +0000 (14:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 17 Sep 2021 19:00:29 +0000 (19:00 +0000)
commit323c6f74d35ec29baac2a1aba4270f89b022815a
tree6724d4c5268ce221753f7e971ce681bbafa0d040
parent7f36ef0aff702f2598390d0349f9c9632942d40b
log: don't format if writing to io.Discard

Fixes #47164

Change-Id: Ied03842360be4c86f1d9ead816f12c057a1f8dad
Reviewed-on: https://go-review.googlesource.com/c/go/+/348741
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Valentin Deleplace <deleplace@google.com>
src/log/log.go
src/log/log_test.go