From a790f6baaa9bf649f99cac9416435821cb36d5b4 Mon Sep 17 00:00:00 2001 From: Michael Costello Date: Thu, 15 Oct 2026 11:34:18 -0400 Subject: [PATCH] fix: Default zap to production mode The operator hard-coded zap's development mode, so every controller built from this template logged console text at debug level in production and panicked on DPanic. Key changes: - stop forcing development mode; --zap-devel still enables it locally Closes #1 Co-Authored-By: Claude Opus 5.5 --- cmd/controller-template/cmd/operator.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/controller-template/cmd/operator.go b/cmd/controller-template/cmd/operator.go index 9c35d82..8731fcc 100644 --- a/cmd/controller-template/cmd/operator.go +++ b/cmd/controller-template/cmd/operator.go @@ -46,9 +46,7 @@ func newOperatorCommand(info BuildInfo) *cobra.Command { serverConfigFile string ) - opts := zap.Options{ - Development: true, - } + opts := zap.Options{} cmd := &cobra.Command{ Use: "operator",