vm: log startup errors in every case

This commit is contained in:
Marek Marczykowski-Górecki 2019-10-10 19:41:02 +02:00
parent 45a6252c06
commit d5b0a6e5b6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1036,6 +1036,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
pre_event=True,
start_guid=start_guid, mem_required=mem_required)
except Exception as exc:
self.log.error('Start failed: %s', str(exc))
yield from self.fire_event_async('domain-start-failed',
reason=str(exc))
raise
@ -1067,6 +1068,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
yield from self.storage.start()
except Exception as exc:
self.log.error('Start failed: %s', str(exc))
# let anyone receiving domain-pre-start know that startup failed
yield from self.fire_event_async('domain-start-failed',
reason=str(exc))