From 13c5e676e2bdea8c2760ff5d2a768e9aa93abee1 Mon Sep 17 00:00:00 2001 From: Kashiko Koibumi Date: Fri, 31 May 2024 02:59:54 +0900 Subject: [PATCH] fix user agent format on debug log --- src/network/bmproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/bmproto.py b/src/network/bmproto.py index b3e3fe3c..9fae2305 100644 --- a/src/network/bmproto.py +++ b/src/network/bmproto.py @@ -549,7 +549,7 @@ class BMProto(AdvancedDispatcher, ObjectTracker): logger.debug( 'remote node incoming address: %s:%i', 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))) if not self.peerValidityChecks(): # ABORT afterwards