From bda7087704a949371f8e7e2c3deb63b5850349a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Fri, 2 Jan 2026 21:40:31 +0100 Subject: feat(log): move in its own package --- backend/storage/stats.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backend/storage/stats.go') diff --git a/backend/storage/stats.go b/backend/storage/stats.go index cdbee75..6bc9958 100644 --- a/backend/storage/stats.go +++ b/backend/storage/stats.go @@ -3,13 +3,14 @@ package storage import ( "context" "fmt" - "log/slog" "net/http" "net/url" "slices" "strings" "sync" "time" + + "git.anhgelus.world/anhgelus/small-web/backend/log" ) const IPAddressKey = "ip_address" @@ -120,7 +121,7 @@ func humanLoad(ctx context.Context, r *http.Request, domain string) error { } defer func() { if err == nil { - slog.Debug("stats updated") + log.GetLogger(ctx).Debug("stats updated") load.Remove(ip, lr.target) } }() -- cgit v1.2.3