Skip to content

Commit

Permalink
Small logging improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jherbel committed May 15, 2024
1 parent dff7a67 commit 0d6f6cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions checkmk_weblate_syncer/po.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 0d6f6cf

Please sign in to comment.