From 14a019157b59d1ee32f7a08db6de32e83cc3dd4f Mon Sep 17 00:00:00 2001 From: Alexander Kozlovsky Date: Fri, 18 Mar 2022 02:34:52 +0100 Subject: [PATCH] Escape non-ASCII symbols when writing the tag value to the log --- src/tribler/core/components/tag/community/tag_community.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tribler/core/components/tag/community/tag_community.py b/src/tribler/core/components/tag/community/tag_community.py index ca3cd192d30..3537777eb27 100644 --- a/src/tribler/core/components/tag/community/tag_community.py +++ b/src/tribler/core/components/tag/community/tag_community.py @@ -75,7 +75,7 @@ def on_message(self, peer, raw: RawTagOperationMessage): with db_session(): is_added = self.db.add_tag_operation(operation, signature.signature) if is_added: - self.logger.info(f'+ tag added ({operation.tag} ,{operation.infohash.hex()})') + self.logger.info(f'+ tag added ({operation.tag!r}, {operation.infohash.hex()})') except PeerValidationError as e: # peer has exhausted his response count self.logger.warning(e)