Compare commits
No commits in common. "900cb70f37792123c1b2659b4b35be102965a669" and "740cac21d37495a06e7fb6de8910aca7b0d92ed6" have entirely different histories.
900cb70f37
...
740cac21d3
3
main.go
3
main.go
@ -49,10 +49,9 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
|
||||
w.WriteHeader(status)
|
||||
}
|
||||
go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
|
||||
if r.URL.Path != "/api/v1/take" {
|
||||
if r.URL == "/api/v1/finish" || r.URL == "/api/v1/put":
|
||||
log.Printf("%s %d %s", r.URL, status, time.Since(start))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
Loading…
Reference in New Issue
Block a user