Log more information on pod status updates

Also bump the logging level to V2 so that we can see them in a non-test
cluster.
This commit is contained in:
Yu-Ju Hong 2016-10-13 14:07:09 -07:00
parent 04437f6403
commit 47c49fc77c

View File

@ -414,7 +414,7 @@ func (m *manager) syncPod(uid types.UID, status versionedPodStatus) {
if err == nil {
translatedUID := m.podManager.TranslatePodUID(pod.UID)
if len(translatedUID) > 0 && translatedUID != uid {
glog.V(3).Infof("Pod %q was deleted and then recreated, skipping status update", format.Pod(pod))
glog.V(2).Infof("Pod %q was deleted and then recreated, skipping status update; old UID %q, new UID %q", format.Pod(pod), uid, translatedUID)
m.deletePodStatus(uid)
return
}