Skip to content

Commit

Permalink
revert unrelated change
Browse files Browse the repository at this point in the history
  • Loading branch information
pjain1 committed Jan 2, 2025
1 parent e50d262 commit 0e91c7d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions admin/jobs/river/org_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ func (w *StartTrialWorker) Work(ctx context.Context, job *river.Job[StartTrialAr

org, sub, err := w.admin.StartTrial(ctx, org)
if err != nil {
if job.Attempt < job.MaxAttempts {
w.logger.Info("retrying to start trial for organization", zap.String("org_id", job.Args.OrgID), zap.String("error", err.Error()))
} else {
w.logger.Error("failed to start trial for organization", zap.String("org_id", job.Args.OrgID), zap.Error(err))
}
w.logger.Error("failed to start trial for organization", zap.String("org_id", job.Args.OrgID), zap.Error(err))
return err
}

Expand Down

0 comments on commit 0e91c7d

Please sign in to comment.