diff --git a/backend/internal/handler/admin/account_handler.go b/backend/internal/handler/admin/account_handler.go index eb9c370d7f..bfa46de05b 100644 --- a/backend/internal/handler/admin/account_handler.go +++ b/backend/internal/handler/admin/account_handler.go @@ -8,6 +8,7 @@ import ( "encoding/json" "errors" "fmt" + "log/slog" "net/http" "strconv" "strings" @@ -369,7 +370,19 @@ func (h *AccountHandler) List(c *gin.Context) { } } if len(accountGroups) > 0 { - affinityClients, _ = h.gatewayCache.GetAccountAffinityClientsBatch(c.Request.Context(), accountGroups, service.ClientAffinityTTL) + var affinityErr error + affinityClients, affinityErr = h.gatewayCache.GetAccountAffinityClientsBatch(c.Request.Context(), accountGroups, service.ClientAffinityTTL) + if affinityErr != nil { + slog.Error("GetAccountAffinityClientsBatch failed", + "error", affinityErr, + "account_count", len(accountGroups), + ) + } else { + slog.Info("GetAccountAffinityClientsBatch success", + "account_count", len(accountGroups), + "result_count", len(affinityClients), + ) + } } }