summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-08-27 13:07:25 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-08-27 13:08:55 +0100
commit05fa81fee43c02aa370b576c5cdfb7940f8c2e99 (patch)
treeadf1f5496a5c61e4dcc8e041d23e7843513a45f9 /synapse/app/homeserver.py
parentUpdated swagger JSON: cleaned up unused entries. Converted most paths to the ... (diff)
downloadsynapse-05fa81fee43c02aa370b576c5cdfb7940f8c2e99.tar.xz
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
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index d0a4880da3..a89770ed7b 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -208,6 +208,7 @@ class SynapseHomeServer(HomeServer):
 
     def start_listening(self, port):
         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):