Format reconcile log with format.Pod(pod)

This commit is contained in:
Random-Liu 2016-01-12 12:03:16 -08:00
parent 2e5da8b881
commit acb74454dc

View File

@ -429,7 +429,8 @@ func (m *manager) needsReconcile(uid types.UID, status api.PodStatus) bool {
// reconcile is not needed. Just return.
return false
}
glog.V(3).Infof("Pod status is inconsistent with cached status, a reconciliation should be triggered:\n %+v", util.ObjectDiff(pod.Status, status))
glog.V(3).Infof("Pod status is inconsistent with cached status for pod %q, a reconciliation should be triggered:\n %+v", format.Pod(pod),
util.ObjectDiff(pod.Status, status))
return true
}