From: Bryan C. Mills Date: Wed, 13 Nov 2019 14:06:25 +0000 (-0500) Subject: cmd/dist: remove chatty log.Print X-Git-Tag: go1.14beta1~216 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c07511585e37695d750a1e2efd44033b1160863a;p=gostls13.git cmd/dist: remove chatty log.Print In CL 206757 I added a log.Printf to identify when GOROOT is not read-only. However, it interacts badly with test sharding in the builders: the log is repeated for every shard. Since the log statement isn't particularly high-value, just remove it. Updates #30316 Change-Id: I385a7f35da59e38ad8b9beef92dc11af931d9571 Reviewed-on: https://go-review.googlesource.com/c/go/+/206898 Run-TryBot: Bryan C. Mills Reviewed-by: Brad Fitzpatrick Reviewed-by: Carlos Amedee TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 84ad5fd59d..036b9353f8 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -195,7 +195,8 @@ func (t *tester) run() { restoreGOROOT := func() {} if strings.HasPrefix(os.Getenv("GO_BUILDER_NAME"), "linux-") { if os.Getuid() == 0 { - log.Printf("Not making GOROOT unwritable: running as root, so permissions would have no effect.") + // Don't bother making GOROOT unwritable: + // we're running as root, so permissions would have no effect. } else { restoreGOROOT = t.makeGOROOTUnwritable() }