Commit acb74454 authored by Random-Liu's avatar Random-Liu

Format reconcile log with format.Pod(pod)

parent 2e5da8b8
...@@ -429,7 +429,8 @@ func (m *manager) needsReconcile(uid types.UID, status api.PodStatus) bool { ...@@ -429,7 +429,8 @@ func (m *manager) needsReconcile(uid types.UID, status api.PodStatus) bool {
// reconcile is not needed. Just return. // reconcile is not needed. Just return.
return false 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 return true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment