HBMQTT-13 #comment Add remote address/port debug info on client connection

pull/8/head
Nicolas Jouanin 2015-07-07 22:58:49 +02:00
rodzic f9278211ef
commit efd88b50fe
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -79,4 +79,5 @@ class Broker:
@asyncio.coroutine
def client_connected(self, reader, writer):
pass
(remote_address, remote_port) = writer.get_extra_info('peername')
self.logger.debug("Connection from %s:%d" % (remote_address, remote_port))