A reliable logger.info() message /after/ the TCP port has been opened and is listening; this is essential for avoiding races in wrapper scripts e.g. integration testing

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-27 13:07:25 +01:00
parent 71095f4e6e
commit 05fa81fee4
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ class SynapseHomeServer(HomeServer):
def start_listening(self, port): def start_listening(self, port):
reactor.listenTCP(port, Site(self.root_resource)) reactor.listenTCP(port, Site(self.root_resource))
logger.info("Synapse now listening on port %d", port)
def setup_logging(verbosity=0, filename=None, config_path=None): def setup_logging(verbosity=0, filename=None, config_path=None):