chore: deprecate --logfile=journald
This commit is contained in:
@@ -140,6 +140,10 @@ def _create_log_config(config: Config) -> dict[str, Any]:
|
|||||||
|
|
||||||
elif s[0] == "journald": # pragma: no cover
|
elif s[0] == "journald": # pragma: no cover
|
||||||
# Check if we have the module available
|
# 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:
|
try:
|
||||||
from cysystemd.journal import JournaldLogHandler # noqa: F401
|
from cysystemd.journal import JournaldLogHandler # noqa: F401
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|||||||
Reference in New Issue
Block a user