Skip to content

Commit

Permalink
adding a apiserver log message when patch fails because a meaningful …
Browse files Browse the repository at this point in the history
…conflict
  • Loading branch information
Chao Xu committed Feb 23, 2016
1 parent 6a19970 commit 78fc311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apiserver/resthandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ func patchResource(ctx api.Context, admit updateAdmissionFunc, timeout time.Dura
return nil, err
}
if hasConflicts {
glog.V(4).Infof("patchResource failed for resource %s, becauase there is a meaningful conflict.\n diff1=%v\n, diff2=%v\n", name, diff1, diff2)
return updateObject, updateErr
}

Expand Down

0 comments on commit 78fc311

Please sign in to comment.