Skip to content

Commit f785b6a

Browse files
fix(klog): fix info values not getting printed with klog
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com> This commit fixes info values not getting printed with klog.
1 parent 62925fc commit f785b6a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/azurefileplugin/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
)
2727

2828
func init() {
29-
_ = flag.Set("logtostderr", "true")
29+
klog.InitFlags(nil)
3030
}
3131

3232
var (
@@ -36,7 +36,6 @@ var (
3636
)
3737

3838
func main() {
39-
klog.InitFlags(nil)
4039
flag.Parse()
4140
if *version {
4241
info, err := azurefile.GetVersionYAML()
@@ -50,7 +49,6 @@ func main() {
5049
klog.Error("--nodeid is a required parameter")
5150
os.Exit(1)
5251
}
53-
5452
handle()
5553
os.Exit(0)
5654
}

0 commit comments

Comments
 (0)