cephfs: replace warning with WarningLogMsg in Run

replace warning with WarningLogMsg in Run for
context based logging.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-08-11 17:34:12 +05:30 committed by mergify[bot]
parent 38273f879f
commit abd548e420

View File

@ -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()