Fix stack trace output

This commit is contained in:
Daniel
2019-05-22 16:05:01 +02:00
parent b8374f044a
commit a2bad3524c

View File

@@ -84,7 +84,7 @@ func main() {
go func() { go func() {
time.Sleep(5 * time.Second) time.Sleep(5 * time.Second)
fmt.Println("===== TAKING TOO LONG FOR SHUTDOWN - PRINTING STACK TRACES =====") fmt.Println("===== TAKING TOO LONG FOR SHUTDOWN - PRINTING STACK TRACES =====")
pprof.Lookup("goroutine").WriteTo(os.Stdout, 2) pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
os.Exit(1) os.Exit(1)
}() }()