Skip to content

Commit 171376c

Browse files
pwschuurmank8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
Initialized flags prior to setting --logtostderr in k8s-integration-test
1 parent 4104121 commit 171376c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/k8s-integration/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,11 @@ type testParameters struct {
107107
}
108108

109109
func init() {
110+
klog.InitFlags(nil)
110111
flag.Set("logtostderr", "true")
111112
}
112113

113114
func main() {
114-
klog.InitFlags(nil)
115-
flag.Set("logtostderr", "true")
116115
flag.Parse()
117116

118117
if *useGKEManagedDriver {

0 commit comments

Comments
 (0)