1
0
mirror of https://github.com/google/gops.git synced 2024-11-27 08:31:17 +02:00

Don't log path to profile dump twice (#98)

The path to the profile dump is already logged after writing the file
(cmd.go line 121). Remove the duplicate log line.

Co-authored-by: Emmanuel T Odeke <odeke@ualberta.ca>
This commit is contained in:
Tobias Klauser 2020-02-29 23:27:25 +01:00 committed by GitHub
parent 71c4255d55
commit 9025be33d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
cmd.go
View File

@ -143,7 +143,6 @@ func pprof(addr net.TCPAddr, p byte) error {
return err return err
} }
} }
fmt.Printf("Profiling dump saved to: %s\n", tmpDumpFile.Name())
fmt.Printf("Binary file saved to: %s\n", tmpBinFile.Name()) fmt.Printf("Binary file saved to: %s\n", tmpBinFile.Name())
cmd := exec.Command("go", "tool", "pprof", tmpBinFile.Name(), tmpDumpFile.Name()) cmd := exec.Command("go", "tool", "pprof", tmpBinFile.Name(), tmpDumpFile.Name())
cmd.Env = os.Environ() cmd.Env = os.Environ()