diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-26 21:55:57 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-26 21:55:57 +0100 |
| commit | af11793ca48244eafd7dcdf66ac1dff83995a775 (patch) | |
| tree | 9fab2b55b9d2ec85e6fdfd683759c84a178fa895 /backend/section.go | |
| parent | 89875be4a5cea6f7b054483417cb6707bb9fc93d (diff) | |
feat(backend): use custom logger
Diffstat (limited to 'backend/section.go')
| -rw-r--r-- | backend/section.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
