1
0
mirror of https://github.com/golang/go synced 2024-09-30 12:08:32 -06:00
go/cmd
Heschi Kreinick 5bcca83a78 internal: rationalize debug logging
In all cases, use a Logf field to configure debug logging. Non-nil means
that logging is enabled through the given function.

Fixes accidental debug spam from goimports, which had a separate Debug
flag that was supposed to guard logging, but wasn't used when creating
the gocommand.Invocation.

Change-Id: I448fa282111db556ac2e49801268d0affc19ae30
Reviewed-on: https://go-review.googlesource.com/c/tools/+/221557
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-03-03 16:59:18 +00:00
..
auth cmd/auth/cookieauth: add a GOAUTH implementation that reads from a cookiefile 2019-04-05 18:06:40 +00:00
benchcmp cmd/benchcmp: add deprecation notice 2020-02-10 18:42:41 +00:00
bundle cmd/bundle: add -tags flag 2019-11-04 19:56:21 +00:00
callgraph all: skip tests if required tools are not found 2019-08-30 15:40:57 +00:00
compilebench all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
cover all: do not write to testdata directories 2019-08-30 17:05:20 +00:00
digraph all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
eg cmd/eg: Gofmt eg's dry-run output. 2017-07-13 04:09:46 +00:00
fiximports all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
getgo all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
go-contrib-init cmd/go-contrib-init: add unit test for the cmdErr function 2019-11-11 20:03:10 +00:00
godex all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
godoc cmd/godoc: delete unused autocert hooks 2019-11-21 21:43:50 +00:00
goimports internal: rationalize debug logging 2020-03-03 16:59:18 +00:00
gomvpkg cmd/gomvpkg: add missing closing double-quote to documentation 2018-05-22 18:16:25 +00:00
gorename all: skip tests if required tools are not found 2019-08-30 15:40:57 +00:00
gotype all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
goyacc cmd/goyacc: put //line annotations on the first column. 2018-09-26 03:27:08 +00:00
guru all: do not write to testdata directories 2019-08-30 17:05:20 +00:00
html2article x/tools/cmd/html2article: remove unused functions 2017-03-01 14:53:04 +00:00
present cmd/present: fix origin mismatch for websocket when using HTTPS 2019-10-14 20:52:21 +00:00
splitdwarf cmd/splitdwarf: fix skip on Windows 2019-05-25 14:57:41 +00:00
ssadump go/ssa/ssautil: add AllPackages method 2018-10-15 18:41:29 +00:00
stress cmd/stress: use an ellipsis when truncating output 2020-01-22 22:00:14 +00:00
stringer cmd/stringer: remove redundant check in generated code 2020-01-14 01:55:19 +00:00
toolstash cmd/toolstash: don't try comparing "asm -V=full" output. 2017-11-02 22:54:56 +00:00