We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae9ed5c commit 130bcccCopy full SHA for 130bccc
cmd/utils/cmd.go
@@ -73,15 +73,13 @@ func StartNode(stack *node.Node) {
73
<-sigc
74
glog.V(logger.Info).Infoln("Got interrupt, shutting down...")
75
go stack.Stop()
76
- logger.Flush()
77
for i := 10; i > 0; i-- {
78
79
if i > 1 {
80
- glog.V(logger.Info).Infoln("Already shutting down, please be patient.")
81
- 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)
82
}
83
84
- glog.V(logger.Error).Infof("Force quitting: this might not end so well.")
+ debug.Exit() // ensure trace and CPU profile data is flushed.
85
debug.LoudPanic("boom")
86
}()
87
0 commit comments