From c326a6bb77c85775f0773906dd890604599a0bd5 Mon Sep 17 00:00:00 2001 From: Dennis <29799340+dennisvang@users.noreply.github.com> Date: Fri, 4 Nov 2022 21:34:11 +0100 Subject: [PATCH] prevent targets metadata ending up in client debug log messages (#54) --- src/tufup/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tufup/client.py b/src/tufup/client.py index 2dca4e7..4f09845 100644 --- a/src/tufup/client.py +++ b/src/tufup/client.py @@ -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 @@ -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() @@ -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]