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
import twisted.manhole.telnet
import synapse
import logging
import os
import re
@ -199,6 +201,7 @@ def setup():
config.setup_logging()
logger.info("Server hostname: %s", config.server_name)
logger.info("Server version: %s", synapse.__version__)
if re.search(":[0-9]+$", config.server_name):
domain_with_port = config.server_name