kubo/cmd/ipfs/debug.go
2022-03-16 09:42:22 -04:00

16 lines
229 B
Go

package main
import (
"net/http"
"github.com/ipfs/go-ipfs/core/commands"
)
func init() {
http.HandleFunc("/debug/stack",
func(w http.ResponseWriter, _ *http.Request) {
_ = commands.WriteAllGoroutineStacks(w)
},
)
}