From e51e3534b52a835697a411431515b5cf9b52fde8 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sun, 13 Jan 2019 17:16:04 -0800 Subject: [PATCH] Write the command line flags to the log This change writes the command line flags to the log instead of stdout, since that confuses clients that expect stdout to be a valid JSON-RPC stream. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 12e8c0e8..f6702ed9 100644 --- a/main.go +++ b/main.go @@ -76,7 +76,7 @@ func main() { log.SetFlags(0) flag.Visit(func(f *flag.Flag) { - fmt.Printf("Command line flag %s: %q (default %q)\n", f.Name, f.Value.String(), f.DefValue) + log.Printf("Command line flag %s: %q (default %q)\n", f.Name, f.Value.String(), f.DefValue) }) vfsutil.ArchiveCacheDir = filepath.Join(*cacheDir, "lang-go-archive-cache")