diff --git a/pkg/blobfuse-proxy/main.go b/pkg/blobfuse-proxy/main.go index b601c39f2..d9b203cef 100644 --- a/pkg/blobfuse-proxy/main.go +++ b/pkg/blobfuse-proxy/main.go @@ -32,10 +32,10 @@ var ( ) func main() { + klog.InitFlags(nil) if err := flag.Set("logtostderr", "true"); err != nil { klog.Fatalf("failed to set logtostderr flag: %v", err) } - klog.InitFlags(nil) flag.Parse() proto, addr, err := csicommon.ParseEndpoint(*blobfuseProxyEndpoint) if err != nil { diff --git a/pkg/blobplugin/main.go b/pkg/blobplugin/main.go index 1fb07f6f4..4199e27b7 100644 --- a/pkg/blobplugin/main.go +++ b/pkg/blobplugin/main.go @@ -57,10 +57,10 @@ var ( ) func main() { + klog.InitFlags(nil) if err := flag.Set("logtostderr", "true"); err != nil { klog.Fatalf("failed to set logtostderr flag: %v", err) } - klog.InitFlags(nil) flag.Parse() if *version { info, err := blob.GetVersionYAML(*driverName)