Skip to content

Commit

Permalink
Parse Zap flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ronensc authored and openshift-merge-bot[bot] committed Nov 15, 2023
1 parent 6b06d33 commit f818a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ func main() {
flag.StringVar(&configMapName, "config", "codeflare-operator-config",
"The name of the ConfigMap to load the operator configuration from. "+
"If it does not exist, the operator will create and initialise it.")
flag.Parse()

zapOptions := zap.Options{
Development: true,
TimeEncoder: zapcore.TimeEncoderOfLayout(time.RFC3339),
}
zapOptions.BindFlags(flag.CommandLine)
flag.Parse()

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

0 comments on commit f818a6b

Please sign in to comment.