chore: deprecate --logfile=journald

This commit is contained in:
Matthias
2025-03-13 19:33:20 +01:00
parent 79ebc943a2
commit 7b1ee84b34

View File

@@ -140,6 +140,10 @@ def _create_log_config(config: Config) -> dict[str, Any]:
elif s[0] == "journald": # pragma: no cover
# Check if we have the module available
logger.warning(
"DEPRECATED: Configuring Journald logging via command line is deprecated."
"Please use the log_config option in the configuration file instead."
)
try:
from cysystemd.journal import JournaldLogHandler # noqa: F401
except ImportError: