Kubelet: add and modify some logging messsages

This helps debug #6651
This commit is contained in:
Yu-Ju Hong
2015-06-24 15:53:25 -07:00
parent befe545033
commit f7fd7e9687
5 changed files with 70 additions and 4 deletions

View File

@@ -51,6 +51,7 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/network"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/rkt"
kubeletTypes "github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/types"
kubeletUtil "github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
@@ -1390,7 +1391,7 @@ func (kl *Kubelet) SyncPods(allPods []*api.Pod, podSyncTypes map[types.UID]SyncP
// Handles pod admission.
pods := kl.admitPods(allPods, podSyncTypes)
glog.V(4).Infof("Desired: %#v", pods)
glog.V(4).Infof("Desired pods: %s", kubeletUtil.FormatPodNames(pods))
var err error
desiredPods := make(map[types.UID]empty)