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