From a7474588866a7a4b450163505dbb72bbe2016a6d Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 28 Jun 2025 06:04:27 +0200 Subject: Remove log file error --- synapse/config/logger.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'synapse') diff --git a/synapse/config/logger.py b/synapse/config/logger.py index e5aca36b75..68b9670f9b 100644 --- a/synapse/config/logger.py +++ b/synapse/config/logger.py @@ -132,11 +132,6 @@ disable_existing_loggers: false """ ) -LOG_FILE_ERROR = """\ -Support for the log_file configuration option and --log-file command-line option was -removed in Synapse 1.3.0. You should instead set up a separate log configuration file. -""" - STRUCTURED_ERROR = """\ Support for the structured configuration option was removed in Synapse 1.54.0. You should instead use the standard logging configuration. See @@ -148,8 +143,6 @@ class LoggingConfig(Config): section = "logging" def read_config(self, config: JsonDict, **kwargs: Any) -> None: - if config.get("log_file"): - raise ConfigError(LOG_FILE_ERROR) self.log_config = self.abspath(config.get("log_config")) self.no_redirect_stdio = config.get("no_redirect_stdio", False) @@ -164,8 +157,6 @@ class LoggingConfig(Config): def read_arguments(self, args: argparse.Namespace) -> None: if args.no_redirect_stdio is not None: self.no_redirect_stdio = args.no_redirect_stdio - if args.log_file is not None: - raise ConfigError(LOG_FILE_ERROR) @staticmethod def add_arguments(parser: argparse.ArgumentParser) -> None: -- cgit 1.5.1