diff options
author | David Robertson <davidr@element.io> | 2022-06-07 15:24:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 15:24:11 +0100 |
commit | f30bcbd84a651de59777b2a749850f6ca56ce3f0 (patch) | |
tree | 8a66fdf82df9a061ca9664b214d23145ee178e1b /synapse/config/logger.py | |
parent | Reduce amount of state we pull out when attempting to send catchup PDUs. (#12... (diff) | |
download | synapse-f30bcbd84a651de59777b2a749850f6ca56ce3f0.tar.xz |
Fix Synapse git info missing in version strings (#12973)
Diffstat (limited to 'synapse/config/logger.py')
-rw-r--r-- | synapse/config/logger.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py index 470b8b4492..82a5b5fa12 100644 --- a/synapse/config/logger.py +++ b/synapse/config/logger.py @@ -22,7 +22,6 @@ from string import Template from typing import TYPE_CHECKING, Any, Dict, Optional import yaml -from matrix_common.versionstring import get_distribution_version_string from zope.interface import implementer from twisted.logger import ( @@ -37,6 +36,7 @@ from synapse.logging.context import LoggingContextFilter from synapse.logging.filter import MetadataFilter from synapse.types import JsonDict +from ..util import SYNAPSE_VERSION from ._base import Config, ConfigError if TYPE_CHECKING: @@ -349,7 +349,7 @@ def setup_logging( logging.warning( "Server %s version %s", sys.argv[0], - get_distribution_version_string("matrix-synapse"), + SYNAPSE_VERSION, ) logging.info("Server hostname: %s", config.server.server_name) logging.info("Instance name: %s", hs.get_instance_name()) |