Skip to content

Commit

Permalink
Merge pull request kubernetes#21723 from caesarxuchao/log-in-patch
Browse files Browse the repository at this point in the history
Adding an apiserver log entry when Patch fails because of a meaningful conflict
  • Loading branch information
caesarxuchao committed Feb 25, 2016
2 parents 63feac0 + 78fc311 commit b94e15d
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 b94e15d

Please sign in to comment.