Skip to content

Commit

Permalink
prevent targets metadata ending up in client debug log messages (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvang authored Nov 4, 2022
1 parent 8f80d17 commit c326a6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tufup/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def trusted_target_metas(self) -> list:
TargetMeta(target_path=key)
for key in self._trusted_set.targets.signed.targets.keys()
]
logger.debug(f'targets metadata found: {_trusted_target_metas}')
logger.debug(f'{len(_trusted_target_metas)} TargetMeta objects created')
else:
logger.warning('targets metadata not found')
return _trusted_target_metas
Expand Down Expand Up @@ -169,7 +169,7 @@ def check_for_updates(
if target_meta.name == self.current_archive.name
and target_meta.version > self.current_archive.version
)
logger.debug(f'all new targets: {all_new_targets}')
logger.debug(f'{len(all_new_targets)} new *targets* found')
# determine latest archive, filtered by the specified pre-release level
new_archives = dict(
item for item in all_new_targets.items()
Expand All @@ -178,7 +178,7 @@ def check_for_updates(
)
new_archive_meta = None
if new_archives:
logger.debug(f'new archives found: {new_archives}')
logger.debug(f'{len(new_archives)} new *archives* found')
new_archive_meta, self.new_archive_info = sorted(
new_archives.items()
)[-1]
Expand Down

0 comments on commit c326a6b

Please sign in to comment.