chore: deprecate syslog from configuration

This commit is contained in:
Matthias
2025-03-13 19:44:44 +01:00
parent 8832bae371
commit 5b8752e649

View File

@@ -128,6 +128,10 @@ def _create_log_config(config: Config) -> dict[str, Any]:
if logfile := config.get("logfile"):
s = logfile.split(":")
if s[0] == "syslog":
logger.warning(
"DEPRECATED: Configuring syslog logging via command line is deprecated."
"Please use the log_config option in the configuration file instead."
)
# Add syslog handler to the config
log_config["handlers"]["syslog"] = {
"class": "logging.handlers.SysLogHandler",