[IMP] core: log address we listen on in multi-worker mode

This commit is contained in:
Christophe Simonis 2017-07-27 13:39:08 +02:00
parent 1e3e3b4bbe
commit 48c478513f
1 changed files with 1 additions and 0 deletions

View File

@ -610,6 +610,7 @@ class PreforkServer(CommonServer):
if self.address:
# listen to socket
_logger.info('HTTP service (werkzeug) running on %s:%s', *self.address)
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.socket.setblocking(0)