fix
Some checks failed
Deploy Dev / Build (pull_request) Failing after 46s
Deploy Dev / Push (pull_request) Has been skipped
Deploy Dev / Deploy dev (pull_request) Has been skipped

This commit is contained in:
Egor Matveev 2025-06-15 16:13:53 +03:00
parent 6567a1dc35
commit 4538137ce4

View File

@ -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))
}
}