Merge pull request #8198 from AchmadFathoni/develop
Fix outdated systemd related exception text.
This commit is contained in:
commit
352f4962da
@ -105,7 +105,7 @@ def setup_logging(config: Config) -> None:
|
||||
try:
|
||||
from cysystemd.journal import JournaldLogHandler
|
||||
except ImportError:
|
||||
raise OperationalException("You need the systemd python package be installed in "
|
||||
raise OperationalException("You need the cysystemd python package be installed in "
|
||||
"order to use logging to journald.")
|
||||
handler_jd = get_existing_handlers(JournaldLogHandler)
|
||||
if handler_jd:
|
||||
|
@ -719,7 +719,7 @@ def test_set_loggers_journald_importerror(import_fails):
|
||||
'logfile': 'journald',
|
||||
}
|
||||
with pytest.raises(OperationalException,
|
||||
match=r'You need the systemd python package.*'):
|
||||
match=r'You need the cysystemd python package.*'):
|
||||
setup_logging(config)
|
||||
logger.handlers = orig_handlers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user