aboutsummaryrefslogtreecommitdiff
path: root/backend/storage/stats.go
diff options
context:
space:
mode:
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)
}
}()