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