fix #30

Merged
emmatveev merged 1 commits from master into dev 2025-06-15 16:36:04 +03:00
Showing only changes of commit 7a99b36b00 - Show all commits

View File

@ -48,12 +48,10 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
} else {
w.WriteHeader(status)
}
// go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
if r.URL.Path != "/api/v1/take" {
go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
log.Printf("%s %d %s", r.URL, status, time.Since(start))
}
}
}
func main() {
client.Connect()