From 0d6f6cf32ea2350eae2c4eb917294a6c15358036 Mon Sep 17 00:00:00 2001 From: Joerg Herbel Date: Wed, 15 May 2024 08:51:48 +0200 Subject: [PATCH] Small logging improvements --- checkmk_weblate_syncer/po.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/checkmk_weblate_syncer/po.py b/checkmk_weblate_syncer/po.py index 644ecc5..3be260a 100644 --- a/checkmk_weblate_syncer/po.py +++ b/checkmk_weblate_syncer/po.py @@ -31,6 +31,7 @@ def run(config: PoModeConfig) -> int: successes: list[_Success] = [] for file_pair in config.po_file_pairs: + LOGGER.info("Processing %s, %s", file_pair.locale, file_pair.checkmk) match ( result := _process_po_file_pair( file_pair=file_pair, @@ -42,7 +43,7 @@ def run(config: PoModeConfig) -> int: successes.append(result) case _Failure(): LOGGER.error( - "We encountered an error while processing the .po file. " + "Encountered an error while processing the .po file pair. " "See the logging output at the end for more information." ) failures.append(result) @@ -79,7 +80,7 @@ def _process_po_file_pair( ) -> _Success | _Failure: checkmk_po_file = checkmk_repo.path / file_pair.checkmk locale_po_file = locale_repo.path / file_pair.locale - LOGGER.info("Checking formatting errors in %s", locale_po_file) + LOGGER.info("Checking for formatting errors in %s", locale_po_file) try: run_subprocess( ["msgfmt", "--check-format", "-o", "-", locale_po_file],