Skip to content

Commit 106a120

Browse files
authored
Merge pull request #46 from ashishranjan738/klogfix
fix(klog): fix info values not getting printed with klog
2 parents 62925fc + f785b6a commit 106a120

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)