Log the error when unable to update job.

This commit is contained in:
Eric Tune 2015-09-21 21:26:06 -07:00
parent 2e5a3cfbc6
commit c99df5e3a4

View File

@ -341,7 +341,7 @@ func (jm *JobController) syncJob(key string) error {
job.Status.Unsuccessful = unsuccessful
if err := jm.updateHandler(&job); err != nil {
glog.Errorf("Failed to update job %v, requeuing", job.Name)
glog.Errorf("Failed to update job %v, requeuing. Error: %v", job.Name, err)
jm.enqueueController(&job)
}
}