From 53bc641959d20c7f754c483a9999281a8a4a996c Mon Sep 17 00:00:00 2001 From: Graham Floyd Date: Fri, 3 Jan 2020 13:30:54 -0600 Subject: [PATCH] Remove fmt.Println from Prometheus middleware --- pkg/config/middleware.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/config/middleware.go b/pkg/config/middleware.go index ef19ac1a..ecf43e45 100644 --- a/pkg/config/middleware.go +++ b/pkg/config/middleware.go @@ -245,7 +245,6 @@ func (p *prometheusMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, response := w.(negroni.ResponseWriter) status := strconv.Itoa(response.Status()) duration := float64(time.Since(start)) / float64(time.Second) - fmt.Println(duration) p.counter.WithLabelValues(status, r.RequestURI, r.Method).Inc() if p.latencies != nil {