Skip to content

Commit 94d3415

Browse files
pwschuurmank8s-infra-cherrypick-robot
authored andcommitted
Initialized flags prior to setting --logtostderr in k8s-integration-test
1 parent 6e3b043 commit 94d3415

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/k8s-integration/main.go

Lines changed: 1 addition & 2 deletions
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)