Skip to content

Commit f818a6b

Browse files
ronenscopenshift-merge-bot[bot]
authored andcommitted
Parse Zap flags
1 parent 6b06d33 commit f818a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ func main() {
8181
flag.StringVar(&configMapName, "config", "codeflare-operator-config",
8282
"The name of the ConfigMap to load the operator configuration from. "+
8383
"If it does not exist, the operator will create and initialise it.")
84-
flag.Parse()
8584

8685
zapOptions := zap.Options{
8786
Development: true,
8887
TimeEncoder: zapcore.TimeEncoderOfLayout(time.RFC3339),
8988
}
9089
zapOptions.BindFlags(flag.CommandLine)
90+
flag.Parse()
9191

9292
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&zapOptions)))
9393
setupLog.Info("Build info",

0 commit comments

Comments
 (0)