remove useless print and revert last commit

This commit is contained in:
Benoit Chesneau 2010-02-16 15:43:41 +01:00
parent d567089c3a
commit 95f6ce5618
3 changed files with 1 additions and 5 deletions

View File

@ -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():

View File

@ -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):

View File

@ -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))