Fixed formatting pattern for addr in listener

This commit is contained in:
Dmitri Bogomolov 2021-03-13 22:02:47 +02:00
parent c5096db0f5
commit 4b0424807e
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -26,7 +26,7 @@ class Listener(threading.Thread):
break
try:
conn, addr = self.s.accept()
logging.info('Incoming connection from: %s:%s', *addr)
logging.info('Incoming connection from: %s:%i', *addr)
with shared.connections_lock:
if len(shared.connections) > shared.connection_limit:
conn.close()