fix user agent format on debug log

This commit is contained in:
Kashiko Koibumi 2024-05-31 02:59:54 +09:00
parent 047ee359b3
commit 13c5e676e2
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4

View File

@ -549,7 +549,7 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
logger.debug( logger.debug(
'remote node incoming address: %s:%i', 'remote node incoming address: %s:%i',
self.destination.host, self.peerNode.port) self.destination.host, self.peerNode.port)
logger.debug('user agent: %s', self.userAgent) logger.debug('user agent: %s', self.userAgent.decode("utf-8", "replace"))
logger.debug('streams: [%s]', ','.join(map(str, self.streams))) logger.debug('streams: [%s]', ','.join(map(str, self.streams)))
if not self.peerValidityChecks(): if not self.peerValidityChecks():
# ABORT afterwards # ABORT afterwards