Refactor logging: update request logging to use dynamic API version retrieval in Handle and HandleList methods

This commit is contained in:
alex
2025-06-25 18:03:10 +03:00
parent ef1efdd585
commit 9f7f046a07
3 changed files with 35 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ func (h *HandlerV1) _handle() {
uuid16 := h.newUUID()
log := h.log.With(
slog.Group("request",
slog.String("version", "v1"),
slog.String("version", h.GetVersion()),
slog.String("url", h.r.URL.String()),
slog.String("method", h.r.Method),
),