Skip to content

Commit

Permalink
add error log for machine update (kubernetes-sigs#819)
Browse files Browse the repository at this point in the history
* chore: add error log for machine update

* fix: log namespace in addition to machine name

Co-Authored-By: rudoi <[email protected]>

* fix: use backticks to wrap log statement
  • Loading branch information
rudoi authored and k8s-ci-robot committed Mar 13, 2019
1 parent 09b15f6 commit a0272c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/machine/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (r *ReconcileMachine) Reconcile(request reconcile.Request) (reconcile.Resul
return reconcile.Result{Requeue: true, RequeueAfter: requeueErr.RequeueAfter}, nil
}

klog.Errorf(`Error updating machine "%s/%s": %v`, m.Namespace, name, err)
return reconcile.Result{}, err
}

Expand Down

0 comments on commit a0272c4

Please sign in to comment.