mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix indent
This commit is contained in:
parent
fba0342536
commit
9928aca73f
@ -151,7 +151,8 @@ class Arbiter(object):
|
|||||||
self.log.error("Connection in use: %s" % str(addr))
|
self.log.error("Connection in use: %s" % str(addr))
|
||||||
if i < 5:
|
if i < 5:
|
||||||
self.log.error("Retrying in 1 second.")
|
self.log.error("Retrying in 1 second.")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
if self.LISTENER:
|
if self.LISTENER:
|
||||||
try:
|
try:
|
||||||
self.log.info("Listen on %s:%s" % self.LISTENER.getsockname())
|
self.log.info("Listen on %s:%s" % self.LISTENER.getsockname())
|
||||||
@ -159,7 +160,7 @@ class Arbiter(object):
|
|||||||
self.log.info("Listen on %s" % self.LISTENER.getsockname())
|
self.log.info("Listen on %s" % self.LISTENER.getsockname())
|
||||||
else:
|
else:
|
||||||
self.log.error("Can't connect to %s" % str(addr))
|
self.log.error("Can't connect to %s" % str(addr))
|
||||||
sys.exit(-1)
|
sys.exit(1)
|
||||||
|
|
||||||
def init_socket_fromfd(self, fd, address):
|
def init_socket_fromfd(self, fd, address):
|
||||||
if isinstance(address, basestring):
|
if isinstance(address, basestring):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user