From 38fbe51153a136a6189f406c6c8df6c84e08eb8e Mon Sep 17 00:00:00 2001 From: Yeray Borges Date: Wed, 7 Feb 2024 10:38:08 +0000 Subject: [PATCH] [289] Use ISO8601 for log timestamps fixes #289 --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 98e08fbff..48e1816be 100644 --- a/main.go +++ b/main.go @@ -21,6 +21,7 @@ import ( "flag" "fmt" "github.com/RHsyseng/operator-utils/pkg/utils/openshift" + "go.uber.org/zap/zapcore" "os" goruntime "runtime" @@ -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()