aboutsummaryrefslogtreecommitdiff
path: root/backend/storage/stats.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2026-01-02 21:40:31 +0100
committerWilliam Hergès <william@herges.fr>2026-01-02 21:40:31 +0100
commitbda7087704a949371f8e7e2c3deb63b5850349a6 (patch)
tree7a163d86a55543df7a64c5554217395f32e7d612 /backend/storage/stats.go
parent9eb385780cd04238225113415810573bc1b67582 (diff)
feat(log): move in its own package
Diffstat (limited to 'backend/storage/stats.go')
-rw-r--r--backend/storage/stats.go5
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)
}
}()