We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e2a877 commit e1cc430Copy full SHA for e1cc430
cmd/digicert-issuer/main.go
@@ -69,6 +69,12 @@ func main() {
69
disableRootCA bool
70
)
71
72
+ logOpts := zap.Options{
73
+ Development: true,
74
+ }
75
+
76
+ logOpts.BindFlags(flag.CommandLine)
77
78
flag.StringVar(&metricsAddr, "metrics-addr", ":8080",
79
"The address the metric endpoint binds to.")
80
@@ -97,7 +103,7 @@ func main() {
97
103
os.Exit(0)
98
104
}
99
105
100
- ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
106
+ ctrl.SetLogger(zap.New(zap.UseFlagOptions(&logOpts)))
101
107
102
108
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
109
Cache: cache.Options{DefaultTransform: cache.TransformStripManagedFields()},
0 commit comments