From 00615f5ffafd4e3c8b288e2da9da2bd719bcbf17 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 4 Dec 2018 16:06:56 -0800 Subject: [PATCH] Adds more logs --- main.go | 3 +++ 1 file changed, 3 insertions(+) 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) {