From 2f29b2bd0f029bed1621fc9364d903d18512e71b Mon Sep 17 00:00:00 2001 From: Spyros Synodinos <138458697+ssyno@users.noreply.github.com> Date: Fri, 20 Sep 2024 17:24:58 +0300 Subject: [PATCH] Disable logger development mode to avoid panicking (#450) --- CHANGELOG.md | 1 + main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eeb40ab..13edd91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Disable zap logger development mode to avoid panicking - Ownership change to Shield ## [2.0.1] - 2024-08-13 diff --git a/main.go b/main.go index ddb873f..548919a 100644 --- a/main.go +++ b/main.go @@ -68,7 +68,7 @@ func main() { flag.BoolVar(&enableHTTP2, "enable-http2", false, "If set, HTTP/2 will be enabled for the metrics and webhook servers") opts := zap.Options{ - Development: true, + Development: false, } opts.BindFlags(flag.CommandLine) flag.Parse()