From 515bd5908ccfe1b14ac4e3ed16058806227c7b8d Mon Sep 17 00:00:00 2001 From: Hyeongju Johannes Lee Date: Tue, 21 Dec 2021 01:55:55 -0800 Subject: [PATCH] dlb:Fix the problem that klog is not printed Add flag parsing to get command line parameters so that parameters about klog can be not ignored --- cmd/dlb_plugin/dlb_plugin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/dlb_plugin/dlb_plugin.go b/cmd/dlb_plugin/dlb_plugin.go index b4baf183..e29e8f5f 100644 --- a/cmd/dlb_plugin/dlb_plugin.go +++ b/cmd/dlb_plugin/dlb_plugin.go @@ -15,6 +15,7 @@ package main import ( + "flag" "path/filepath" "reflect" "time" @@ -106,6 +107,7 @@ func (dp *DevicePlugin) scan() dpapi.DeviceTree { } func main() { + flag.Parse() klog.V(1).Infof("DLB device plugin started") plugin := NewDevicePlugin(dlbDeviceFilePathRE, sysfsDir)