Log changes

This commit is contained in:
zdj6373 2017-05-06 11:22:37 +08:00
parent b9f340d922
commit aa86d7734b

View File

@ -278,7 +278,7 @@ func (plugin *cniNetworkPlugin) GetPodNetworkStatus(namespace string, name strin
func (plugin *cniNetworkPlugin) addToNetwork(network *cniNetwork, podName string, podNamespace string, podInfraContainerID kubecontainer.ContainerID, podNetnsPath string) (cnitypes.Result, error) {
rt, err := plugin.buildCNIRuntimeConf(podName, podNamespace, podInfraContainerID, podNetnsPath)
if err != nil {
glog.Errorf("Error adding network when buliding cni runtime conf: %v", err)
glog.Errorf("Error adding network when building cni runtime conf: %v", err)
return nil, err
}
@ -296,7 +296,7 @@ func (plugin *cniNetworkPlugin) addToNetwork(network *cniNetwork, podName string
func (plugin *cniNetworkPlugin) deleteFromNetwork(network *cniNetwork, podName string, podNamespace string, podInfraContainerID kubecontainer.ContainerID, podNetnsPath string) error {
rt, err := plugin.buildCNIRuntimeConf(podName, podNamespace, podInfraContainerID, podNetnsPath)
if err != nil {
glog.Errorf("Error deleting network when buliding cni runtime conf: %v", err)
glog.Errorf("Error deleting network when building cni runtime conf: %v", err)
return err
}