补齐相关日志日志
This commit is contained in:
@@ -36,6 +36,8 @@ func (s *QuotaService) InfoGetBySelf(ctx context.Context, userID int64) (*dto.Qu
|
||||
for _, quotaType := range types {
|
||||
eff, err := getEffectiveQuota(ctx, userID, quotaType)
|
||||
if err != nil {
|
||||
slog.ErrorContext(ctx, "quota info: calc effective quota failed",
|
||||
"user_id", userID, "quota_type", quotaType, "error", err)
|
||||
return nil, err
|
||||
}
|
||||
items = append(items, dto.QuotaItemResponse{
|
||||
@@ -58,6 +60,7 @@ func (s *QuotaService) FlowList(ctx context.Context, userID int64, request *dto.
|
||||
|
||||
list, total, err := s.flowLogDao.QuotaFlowLogListByUserID(ctx, userID, request.QuotaType, page, pageSize)
|
||||
if err != nil {
|
||||
slog.ErrorContext(ctx, "quota flow list: query failed", "user_id", userID, "error", err)
|
||||
return nil, errcode.DatabaseError
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user