Skip to content

Commit

Permalink
Escape non-ASCII symbols when writing the tag value to the log
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Mar 18, 2022
1 parent e112e0d commit 14a0191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribler/core/components/tag/community/tag_community.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 14a0191

Please sign in to comment.