Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
chore: Clean up log statement
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Beam <brad.beam@b-rad.info>
  • Loading branch information
bradbeam committed Nov 19, 2020
1 parent dfb6847 commit 77b8b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/trial_job_controller.go
Expand Up @@ -199,7 +199,7 @@ func (r *TrialJobReconciler) applyJobStatus(ctx context.Context, t *redskyv1beta

// Patch the job and set parallelism to 0 to suspend the job and terminate any active pods
if err := r.Patch(ctx, job, client.RawPatch(types.StrategicMergePatchType, []byte(`{ "spec": { "parallelism": 0 } }`))); err != nil {
r.Log.Error(err, "unable suspend trial job", "job", job, "pod status", podList.Items[i].Status)
r.Log.WithValues("trial", fmt.Sprintf("%s/%s", t.Namespace, t.Name), "job", fmt.Sprintf("%s/%s", job.Namespace, job.Name)).Error(err, "unable suspend trial job")
}
dirty = true
}
Expand Down

0 comments on commit 77b8b51

Please sign in to comment.