1 files changed, 0 insertions, 9 deletions
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:
|