Skip to content

Commit

Permalink
[289] Use ISO8601 for log timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
yersan committed Feb 7, 2024
1 parent a157f50 commit 38fbe51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"flag"
"fmt"
"github.com/RHsyseng/operator-utils/pkg/utils/openshift"
"go.uber.org/zap/zapcore"
"os"
goruntime "runtime"

Expand Down Expand Up @@ -74,7 +75,7 @@ func main() {
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")
opts := zap.Options{
// Development: true, // Commented out to use default production options
TimeEncoder: zapcore.ISO8601TimeEncoder,
}
opts.BindFlags(flag.CommandLine)
flag.Parse()
Expand Down

0 comments on commit 38fbe51

Please sign in to comment.