diff options
| author | William Hergès <william@herges.fr> | 2026-01-02 21:40:31 +0100 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2026-01-02 21:40:31 +0100 |
| commit | bda7087704a949371f8e7e2c3deb63b5850349a6 (patch) | |
| tree | 7a163d86a55543df7a64c5554217395f32e7d612 /backend/storage | |
| parent | 9eb385780cd04238225113415810573bc1b67582 (diff) | |
feat(log): move in its own package
Diffstat (limited to 'backend/storage')
| -rw-r--r-- | backend/storage/stats.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) } }() |
