Skip to content

Commit

Permalink
Merge pull request #313 from gfloyd/remove-println
Browse files Browse the repository at this point in the history
Remove fmt.Println from Prometheus middleware
  • Loading branch information
zhouzhuojie authored Jan 4, 2020
2 parents 2901644 + 53bc641 commit 4238989
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/config/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4238989

Please sign in to comment.