diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-08-27 13:07:25 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-08-27 13:08:55 +0100 |
commit | 05fa81fee43c02aa370b576c5cdfb7940f8c2e99 (patch) | |
tree | adf1f5496a5c61e4dcc8e041d23e7843513a45f9 /synapse/app | |
parent | Updated swagger JSON: cleaned up unused entries. Converted most paths to the ... (diff) | |
download | synapse-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')
-rwxr-xr-x | synapse/app/homeserver.py | 1 |
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): |