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,11 +48,9 @@ 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() {