mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
remove useless print and revert last commit
This commit is contained in:
parent
d567089c3a
commit
95f6ce5618
@ -77,8 +77,6 @@ class Arbiter(object):
|
||||
self.pidfile = self.opts.get("pidfile")
|
||||
self.log.info("Booted Arbiter: %s" % os.getpid())
|
||||
self.log.info("Listening on socket: %s" % self.LISTENER)
|
||||
if 'GUNICORN_FD' in os.environ:
|
||||
del os.environ['GUNICORN_FD']
|
||||
|
||||
def _del_pidfile(self):
|
||||
self._pidfile = None
|
||||
@ -89,7 +87,6 @@ class Arbiter(object):
|
||||
def _set_pidfile(self, path):
|
||||
if not path:
|
||||
return
|
||||
|
||||
pid = self.valid_pidfile(path)
|
||||
if pid:
|
||||
if self.pidfile and path == self.pidfile and pid == os.getpid():
|
||||
|
||||
@ -99,7 +99,7 @@ class Config(object):
|
||||
@property
|
||||
def address(self):
|
||||
if not self.conf['bind']:
|
||||
raise RuntimeError("Listener address is not set")
|
||||
raise RuntimeError("Listener address is not set")
|
||||
return util.parse_address(self.conf['bind'])
|
||||
|
||||
def _hook(self, hookname, *args):
|
||||
|
||||
@ -19,7 +19,6 @@ class BaseSocket(object):
|
||||
if fd is None:
|
||||
sock = socket.socket(self.FAMILY, socket.SOCK_STREAM)
|
||||
else:
|
||||
print "%r" % fd
|
||||
sock = socket.fromfd(fd, self.FAMILY, socket.SOCK_STREAM)
|
||||
self.sock = self.set_options(sock, bound=(fd is not None))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user