From 025adcb4d6ab8da25b065ac2837c30f48b26e7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Tue, 10 Sep 2024 11:39:46 +0200 Subject: [PATCH] Disable logger development mode to avoid panicking, use zap as logger --- CHANGELOG.md | 4 ++++ main.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21ea817..6e42c3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Disable logger development mode to avoid panicking, use zap as logger. + ## [0.10.1] - 2024-08-01 ### Fixed diff --git a/main.go b/main.go index 7b9defe..c7bb402 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ func main() { "Enable leader election for controller manager. "+ "Enabling this will ensure there is only one active controller manager.") opts := zap.Options{ - Development: true, + Development: false, } opts.BindFlags(flag.CommandLine) flag.Parse()