diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-05-06 18:05:54 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-05-06 18:05:54 +0800 |
commit | f821b0188a27bca08cada87c5b746ef9455a2e96 (patch) | |
tree | 5303027d1d275d6696153da097270928617431d1 /cmd | |
parent | a1c201a5ac977bd090ca07fecdb29f494afb5ce2 (diff) | |
parent | 130bccc7630a6f6ec7990900bc9dc9bce410a6ad (diff) | |
download | go-tangerine-f821b0188a27bca08cada87c5b746ef9455a2e96.tar go-tangerine-f821b0188a27bca08cada87c5b746ef9455a2e96.tar.gz go-tangerine-f821b0188a27bca08cada87c5b746ef9455a2e96.tar.bz2 go-tangerine-f821b0188a27bca08cada87c5b746ef9455a2e96.tar.lz go-tangerine-f821b0188a27bca08cada87c5b746ef9455a2e96.tar.xz go-tangerine-f821b0188a27bca08cada87c5b746ef9455a2e96.tar.zst go-tangerine-f821b0188a27bca08cada87c5b746ef9455a2e96.zip |
Merge pull request #2518 from fjl/debug-go-trace
internal/debug: also rename debug_startTrace to debug_startGoTrace
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/utils/cmd.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index d331f762f..9e2b14f56 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -73,15 +73,13 @@ func StartNode(stack *node.Node) { <-sigc glog.V(logger.Info).Infoln("Got interrupt, shutting down...") go stack.Stop() - logger.Flush() for i := 10; i > 0; i-- { <-sigc if i > 1 { - glog.V(logger.Info).Infoln("Already shutting down, please be patient.") - glog.V(logger.Info).Infoln("Interrupt", i-1, "more times to induce panic.") + glog.V(logger.Info).Infof("Already shutting down, interrupt %d more times for panic.", i-1) } } - glog.V(logger.Error).Infof("Force quitting: this might not end so well.") + debug.Exit() // ensure trace and CPU profile data is flushed. debug.LoudPanic("boom") }() } |