mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 12:05:30 -04:00
Check the existance and versions of necessary modules when starting synapse, log which modules are used
This commit is contained in:
parent
9d0dcf2e3c
commit
63403aa7a5
2 changed files with 85 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue