Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Add klog.InitFlags(nil) to main.go
Browse files Browse the repository at this point in the history
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
  • Loading branch information
humblec committed Jan 28, 2019
1 parent 81a49e5 commit cef7832
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/efs/cmd/efs-provisioner/efs-provisioner.go
Expand Up @@ -272,6 +272,7 @@ func (p *efsProvisioner) getLocalPathToDelete(nfs *v1.NFSVolumeSource) (string,
}

func main() {
klog.InitFlags(nil)
flag.Parse()
flag.Set("logtostderr", "true")

Expand Down
1 change: 1 addition & 0 deletions ceph/cephfs/cephfs-provisioner.go
Expand Up @@ -385,6 +385,7 @@ var (
)

func main() {
klog.InitFlags(nil)
flag.Parse()
flag.Set("logtostderr", "true")

Expand Down
1 change: 1 addition & 0 deletions ceph/rbd/cmd/rbd-provisioner/main.go
Expand Up @@ -43,6 +43,7 @@ const (
)

func main() {
klog.InitFlags(nil)
flag.Parse()
flag.Set("logtostderr", "true")

Expand Down
1 change: 1 addition & 0 deletions digitalocean/cmd/digitalocean-provisioner/main.go
Expand Up @@ -44,6 +44,7 @@ var (

func main() {
flag.Set("logtostderr", "true")
klog.InitFlags(nil)
flag.Parse()

if errs := validateProvisioner(*provisioner, field.NewPath("provisioner")); len(errs) != 0 {
Expand Down
1 change: 1 addition & 0 deletions flex/cmd/flex-provisioner/main.go
Expand Up @@ -41,6 +41,7 @@ var (

func main() {
flag.Set("logtostderr", "true")
klog.InitFlags(nil)
flag.Parse()

if errs := validateProvisioner(*provisioner, field.NewPath("provisioner")); len(errs) != 0 {
Expand Down
Expand Up @@ -883,6 +883,7 @@ var (
)

func main() {
klog.InitFlags(nil)
flag.Parse()
flag.Set("logtostderr", "true")

Expand Down
Expand Up @@ -907,6 +907,7 @@ var (
)

func main() {
klog.InitFlags(nil)
flag.Parse()
flag.Set("logtostderr", "true")

Expand Down
1 change: 1 addition & 0 deletions gluster/glusterfs/cmd/glusterfs-simple-provisioner/main.go
Expand Up @@ -39,6 +39,7 @@ var (

func main() {
flag.Set("logtostderr", "true")
klog.InitFlags(nil)
flag.Parse()

if errs := validateProvisioner(*provisioner, field.NewPath("provisioner")); len(errs) != 0 {
Expand Down

0 comments on commit cef7832

Please sign in to comment.