Do not log to journald on non-systemd systems.
Some systems like WSL do not support systemd and we cannot rely on journald for logging. Thus we remove the progress controller that would always be blank. Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
parent
dadbb55fd2
commit
15664d9016
|
@ -319,14 +319,18 @@ class SubiquityClient(TuiApplication):
|
||||||
print(line)
|
print(line)
|
||||||
return
|
return
|
||||||
await super().start()
|
await super().start()
|
||||||
journald_listen(
|
# Progress uses systemd to collect and display the installation
|
||||||
self.aio_loop,
|
# logs. Although some system don't have systemd, so we disable
|
||||||
[status.event_syslog_id],
|
# the progress page
|
||||||
self.controllers.Progress.event)
|
if hasattr(self.controllers, "Progress"):
|
||||||
journald_listen(
|
journald_listen(
|
||||||
self.aio_loop,
|
self.aio_loop,
|
||||||
[status.log_syslog_id],
|
[status.event_syslog_id],
|
||||||
self.controllers.Progress.log_line)
|
self.controllers.Progress.event)
|
||||||
|
journald_listen(
|
||||||
|
self.aio_loop,
|
||||||
|
[status.log_syslog_id],
|
||||||
|
self.controllers.Progress.log_line)
|
||||||
if not status.cloud_init_ok:
|
if not status.cloud_init_ok:
|
||||||
self.add_global_overlay(CloudInitFail(self))
|
self.add_global_overlay(CloudInitFail(self))
|
||||||
self.error_reporter.load_reports()
|
self.error_reporter.load_reports()
|
||||||
|
|
Loading…
Reference in New Issue