0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 09:03:51 +01:00

Log server version on startup

This commit is contained in:
Erik Johnston 2015-01-07 17:25:28 +00:00
parent 76e1565200
commit 42507b0011

View file

@ -39,6 +39,8 @@ from synapse.util.logcontext import LoggingContext
from daemonize import Daemonize from daemonize import Daemonize
import twisted.manhole.telnet import twisted.manhole.telnet
import synapse
import logging import logging
import os import os
import re import re
@ -199,6 +201,7 @@ def setup():
config.setup_logging() config.setup_logging()
logger.info("Server hostname: %s", config.server_name) logger.info("Server hostname: %s", config.server_name)
logger.info("Server version: %s", synapse.__version__)
if re.search(":[0-9]+$", config.server_name): if re.search(":[0-9]+$", config.server_name):
domain_with_port = config.server_name domain_with_port = config.server_name