From cc2875563fdb2ccdbb9d0f46bb9863514ee85254 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sun, 15 Jun 2025 16:18:11 +0300 Subject: [PATCH] fix --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8d98ab8..8d75555 100644 --- a/main.go +++ b/main.go @@ -49,8 +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 == "/api/v1/finish" || r.URL == "/api/v1/put": + if r.URL.Path != "/api/v1/take" { log.Printf("%s %d %s", r.URL, status, time.Since(start)) + } } }