Skip to content

Commit

Permalink
feat: add the number of errors to the debug output in load_deb822
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Nov 21, 2024
1 parent 86e78b5 commit 2dd9dcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/charms/operator_libs_linux/v0/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,8 @@ def load_deb822(self, filename: str) -> None:

if errors:
logger.debug(
"the following errors were encountered when reading deb822 format sources:\n%s",
"the following %d error(s) were encountered when reading deb822 format sources:\n%s",
len(errors),
"\n".join(str(e) for e in errors),
)

Expand Down

0 comments on commit 2dd9dcd

Please sign in to comment.