From fdc60629c9b7640f2711645e9ad55ebc4a52ce47 Mon Sep 17 00:00:00 2001 From: Harsh Desai Date: Mon, 12 Nov 2018 10:59:57 -0800 Subject: [PATCH] Update portworx to move from glog to klog Signed-off-by: Harsh Desai --- pkg/volume/portworx/portworx_util.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/volume/portworx/portworx_util.go b/pkg/volume/portworx/portworx_util.go index ea6092da77..7ac5522dac 100644 --- a/pkg/volume/portworx/portworx_util.go +++ b/pkg/volume/portworx/portworx_util.go @@ -295,10 +295,10 @@ func (util *portworxVolumeUtil) getPortworxDriver(volumeHost volume.VolumeHost) return nil, err } - glog.Infof("Using portworx cluster service at: %v:%d as api endpoint", + klog.Infof("Using portworx cluster service at: %v:%d as api endpoint", svc.Spec.ClusterIP, osdMgmtDefaultPort) } else { - glog.Infof("Using portworx service at: %v:%d as api endpoint", + klog.Infof("Using portworx service at: %v:%d as api endpoint", volumeHost.GetHostName(), osdMgmtDefaultPort) } @@ -330,7 +330,7 @@ func (util *portworxVolumeUtil) getLocalPortworxDriver(volumeHost volume.VolumeH return nil, err } - glog.Infof("Using portworx local service at: %v:%d as api endpoint", + klog.Infof("Using portworx local service at: %v:%d as api endpoint", volumeHost.GetHostName(), osgMgmtPort) return volumeclient.VolumeDriver(util.portworxClient), nil } @@ -351,20 +351,20 @@ func getPortworxService(host volume.VolumeHost) (*v1.Service, error) { kubeClient := host.GetKubeClient() if kubeClient == nil { err := fmt.Errorf("Failed to get kubeclient when creating portworx client") - glog.Errorf(err.Error()) + klog.Errorf(err.Error()) return nil, err } opts := metav1.GetOptions{} svc, err := kubeClient.CoreV1().Services(api.NamespaceSystem).Get(pxServiceName, opts) if err != nil { - glog.Errorf("Failed to get service. Err: %v", err) + klog.Errorf("Failed to get service. Err: %v", err) return nil, err } if svc == nil { err = fmt.Errorf("Service: %v not found. Consult Portworx docs to deploy it.", pxServiceName) - glog.Errorf(err.Error()) + klog.Errorf(err.Error()) return nil, err }