Compare commits
No commits in common. "28e83ee592271d05ab2e0c65c2f6f3e00e895a4e" and "7f60dc0f59d1741f0630c3112e40d73754657749" have entirely different histories.
28e83ee592
...
7f60dc0f59
4
main.go
4
main.go
@ -48,10 +48,12 @@ 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" {
|
||||||
log.Printf("%s %d %s", r.URL, status, time.Since(start))
|
log.Printf("%s %d %s", r.URL, status, time.Since(start))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
client.Connect()
|
client.Connect()
|
||||||
|
Loading…
Reference in New Issue
Block a user