aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin')
-rw-r--r--backend/admin/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/admin/handler.go b/backend/admin/handler.go
index a18e32a..ef19f21 100644
--- a/backend/admin/handler.go
+++ b/backend/admin/handler.go
@@ -3,7 +3,7 @@ package admin
import (
"context"
"errors"
- "log"
+ "log/slog"
"net/http"
"strconv"
"time"
@@ -268,7 +268,7 @@ func (h *Handler) postUserFetchIcon(c echo.Context) error {
go func() {
err := account.FetchIcon(context.Background(), h.q, int(row.UserID))
if err != nil {
- log.Printf("%v", err)
+ slog.Error("failed to fetch icon", "error", err)
// The failure is intentionally ignored. Retry manually if needed.
}
}()