From af11793ca48244eafd7dcdf66ac1dff83995a775 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 26 Dec 2025 21:55:57 +0100 Subject: feat(backend): use custom logger --- backend/section.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/section.go') diff --git a/backend/section.go b/backend/section.go index 1b5ab9f..5bbf558 100644 --- a/backend/section.go +++ b/backend/section.go @@ -269,7 +269,7 @@ func (s *Section) handlePagination(w http.ResponseWriter, r *http.Request, maxLo var err error page, err = strconv.Atoi(rawPage) if err != nil || page < 1 { - slog.Warn("invalid page number", "rawPage", rawPage) + GetLogger(r.Context()).Warn("invalid page number", "requested", rawPage) http.Error(w, "Bad request", http.StatusBadRequest) return nil } -- cgit v1.2.3