summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-01-08 17:07:28 +0000
committerMark Haines <mark.haines@matrix.org>2015-01-08 17:08:57 +0000
commit63403aa7a57704cde86344b48390d16b1d74b035 (patch)
treee3a8561bb2467379d284923ed7a035890f3e7b7a /synapse/app/homeserver.py
parentSYN-142: Rotate logs if logging to file. Fixed to a 4 file rotate with 100MB/... (diff)
downloadsynapse-63403aa7a57704cde86344b48390d16b1d74b035.tar.xz
Check the existance and versions of necessary modules when starting synapse, log which modules are used
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index fba43aa2bf..43b5c26144 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -18,6 +18,8 @@ from synapse.storage import prepare_database, UpgradeDatabaseException
 
 from synapse.server import HomeServer
 
+from synapse.python_dependencies import check_requirements
+
 from twisted.internet import reactor
 from twisted.enterprise import adbapi
 from twisted.web.resource import Resource
@@ -200,6 +202,8 @@ def setup():
 
     config.setup_logging()
 
+    check_requirements()
+
     logger.info("Server hostname: %s", config.server_name)
     logger.info("Server version: %s", synapse.__version__)
 
@@ -280,6 +284,7 @@ def run():
 
 def main():
     with LoggingContext("main"):
+        check_requirements()
         setup()