Fixed formatting pattern for addr in listener
This commit is contained in:
parent
c5096db0f5
commit
4b0424807e
|
@ -26,7 +26,7 @@ class Listener(threading.Thread):
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
conn, addr = self.s.accept()
|
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:
|
with shared.connections_lock:
|
||||||
if len(shared.connections) > shared.connection_limit:
|
if len(shared.connections) > shared.connection_limit:
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user