From 5b8752e6495b4bb789f3ed7b8d0bb99aaaeae655 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 13 Mar 2025 19:44:44 +0100 Subject: [PATCH] chore: deprecate syslog from configuration --- freqtrade/loggers/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freqtrade/loggers/__init__.py b/freqtrade/loggers/__init__.py index 9bc20ce78..e39dcdd45 100644 --- a/freqtrade/loggers/__init__.py +++ b/freqtrade/loggers/__init__.py @@ -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",