From 87c6761847514e57a71f436b2e5c22875a6a239d Mon Sep 17 00:00:00 2001 From: Martin Najemi Date: Sun, 7 Jun 2026 03:22:59 +0200 Subject: [PATCH] fix: BASIC log level silently swallowing all output Risk: low --- CHANGELOG.md | 6 ++++++ VERSION | 2 +- main.go | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32e1b40..d9b5f6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.21.3] - 2026-06-07 + +### Fixed +- `LOG_LEVEL=BASIC` (and the `BASIC`-gated output under `DEBUG`) emitted nothing. `main` set the local `flagLog` from `LOG_LEVEL` but only ever assigned `log.Debug`, never `log.Basic`, so the package-level `Basic` flag stayed `false` and every `log.Basicf(...)` call was silently swallowed. `log.Basic` is now set from `flagLog`, restoring the progress/affected-package logging on stderr while the JSON result stays on stdout. + ## [0.21.2] - 2026-06-01 ### Fixed @@ -302,6 +307,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Multi-stage Docker build - Automated vendor upgrade workflow +[0.21.3]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.21.2...v0.21.3 [0.21.2]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.21.1...v0.21.2 [0.21.1]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.21.0...v0.21.1 [0.21.0]: https://github.com/gooddata/gooddata-goodchanges/compare/v0.20.0...v0.21.0 diff --git a/VERSION b/VERSION index 2d62101..804b3de 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.21.2 \ No newline at end of file +0.21.3 \ No newline at end of file diff --git a/main.go b/main.go index f6851aa..311d376 100644 --- a/main.go +++ b/main.go @@ -70,6 +70,7 @@ func main() { flagLog = logLevel == "BASIC" || logLevel == "DEBUG" flagDebug = logLevel == "DEBUG" + log.Basic = flagLog log.Debug = flagDebug analyzer.IncludeCSS = flagIncludeCSS