Fix b'ab' noise in logs

This commit is contained in:
Richard van der Hoff 2019-02-01 12:34:31 +00:00
parent 582786fbf2
commit e9779a6f8f

View File

@ -379,7 +379,7 @@ class LoggingHostnameEndpoint(object):
self.ep = HostnameEndpoint(reactor, host, port, *args, **kwargs)
def connect(self, protocol_factory):
logger.info("Connecting to %s:%i", self.host, self.port)
logger.info("Connecting to %s:%i", self.host.decode("ascii"), self.port)
return self.ep.connect(protocol_factory)