We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ed14b7 commit 73b85bcCopy full SHA for 73b85bc
main.go
@@ -45,6 +45,7 @@ import (
45
"strconv"
46
"time"
47
48
+ "go.uber.org/zap/zapcore"
49
"k8s.io/apimachinery/pkg/runtime"
50
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
51
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
@@ -79,7 +80,13 @@ func main() {
79
80
"Enabling this will ensure there is only one active controller manager.")
81
flag.Parse()
82
- ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
83
+ // Initialize new logger Opts
84
+ options := &zap.Options{
85
+ Development: true,
86
+ TimeEncoder: zapcore.RFC3339TimeEncoder,
87
+ }
88
+
89
+ ctrl.SetLogger(zap.New(func(o *zap.Options) { *o = *options }))
90
91
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
92
Scheme: scheme,
0 commit comments