mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-22 10:06:15 +00:00
Merge pull request #14336 from erictune/more-verbosity-job-controller
Log the error when unable to update job.
This commit is contained in:
commit
b113b5ac2a
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user