From c90fd45f6a921c39f3624adbbc7d02c64083fdb0 Mon Sep 17 00:00:00 2001 From: Spyros Synodinos <138458697+ssyno@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:45:05 +0300 Subject: [PATCH] Disable logger development mode to avoid panicking (#385) --- CHANGELOG.md | 4 ++++ main.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba984f45..d75c2e07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add Vertical Pod Autoscaler (VPA) configuration, enabled by default. +### Changed + +- Disable logger development mode to avoid panicking + ## [0.7.11] - 2024-06-12 ### Changed diff --git a/main.go b/main.go index 272952c8..d57273c2 100644 --- a/main.go +++ b/main.go @@ -133,7 +133,7 @@ func main() { "Enable metrics for VulnerabilityReport resources.") opts := zap.Options{ - Development: true, + Development: false, } opts.BindFlags(flag.CommandLine) flag.Parse()