From abd548e420ee3fa69d83c41f3f177e794eaf0bce Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:34:12 +0530 Subject: [PATCH] cephfs: replace warning with WarningLogMsg in Run replace warning with WarningLogMsg in Run for context based logging. Signed-off-by: Madhu Rajanna --- internal/cephfs/driver.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/cephfs/driver.go b/internal/cephfs/driver.go index 280a96ac1..288f4911d 100644 --- a/internal/cephfs/driver.go +++ b/internal/cephfs/driver.go @@ -17,8 +17,6 @@ limitations under the License. package cephfs import ( - klog "k8s.io/klog/v2" - csicommon "github.com/ceph/ceph-csi/internal/csi-common" "github.com/ceph/ceph-csi/internal/journal" "github.com/ceph/ceph-csi/internal/util" @@ -156,7 +154,7 @@ func (fs *Driver) Run(conf *util.Config) { server := csicommon.NewNonBlockingGRPCServer() server.Start(conf.Endpoint, conf.HistogramOption, fs.is, fs.cs, fs.ns, conf.EnableGRPCMetrics) if conf.EnableGRPCMetrics { - klog.Warning("EnableGRPCMetrics is deprecated") + util.WarningLogMsg("EnableGRPCMetrics is deprecated") go util.StartMetricsServer(conf) } server.Wait()