From 22d5f00814b3769eee58636d6e167358be4c90e7 Mon Sep 17 00:00:00 2001 From: Jonas Scharpf Date: Thu, 14 Nov 2024 18:09:02 +0100 Subject: [PATCH] Handover logger to RenderVersionFile this fixes #30 --- .snippets/30.md | 8 ++++++++ src/changelog2version/update_version.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .snippets/30.md diff --git a/.snippets/30.md b/.snippets/30.md new file mode 100644 index 0000000..b7c587c --- /dev/null +++ b/.snippets/30.md @@ -0,0 +1,8 @@ +## Handover logger to RenderVersionFile + + +Handover logger of `update_version` to `RenderVersionFile` to avoid the creation and usage of the `RenderVersionFile` logger which does not respect the logging level settings of `update_version` diff --git a/src/changelog2version/update_version.py b/src/changelog2version/update_version.py index 9f98567..52a84af 100644 --- a/src/changelog2version/update_version.py +++ b/src/changelog2version/update_version.py @@ -242,7 +242,7 @@ def main(): semver_string = version_extractor.parse_semver_line( release_version_line=version_line) - file_renderer = RenderVersionFile() + file_renderer = RenderVersionFile(logger=logger) semver_data = version_extractor.semver_data additional_data = "" if additional_version_info: