diff --git a/main.go b/main.go index 09883718..fa941516 100644 --- a/main.go +++ b/main.go @@ -13,6 +13,7 @@ import ( "net/http" "os" "os/signal" + "runtime" "strings" "time" ) @@ -169,6 +170,8 @@ Loop: break Loop } } + + log.WithField("NumGoroutine", runtime.NumGoroutine()).Debug("runtime stats") } func (h *handler) streamEvents(w http.ResponseWriter, r *http.Request) {