From 070b6b66b2e697b56431cf0da471c6d25ccbe1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Tue, 10 Sep 2024 12:40:16 +0200 Subject: [PATCH] Disable logger development mode to avoid panicking, use zap as logger (#121) --- CHANGELOG.md | 4 ++++ main.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6317e89..f904381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,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-07-02 ### Changed diff --git a/main.go b/main.go index c895e85..4ada237 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ func main() { flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.") flag.BoolVar(&dryRun, "dry-run", false, "Enable dry-run.") opts := zap.Options{ - Development: true, + Development: false, } opts.BindFlags(flag.CommandLine) flag.Parse()