mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
add debuginfo when retrying socket creation
This commit is contained in:
parent
081f8eec08
commit
8e8611a741
@ -231,6 +231,8 @@ def create_sockets(conf, log):
|
||||
if e.args[0] == errno.EADDRNOTAVAIL:
|
||||
log.error("Invalid address: %s", str(addr))
|
||||
if i < 5:
|
||||
msg = "connection to {addr} failed: {error}"
|
||||
log.debug(msg.format(addr=str(addr), error=str(e)))
|
||||
log.error("Retrying in 1 second.")
|
||||
time.sleep(1)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user