Merge branch 'start-logging'

* start-logging:
  vm: log startup errors in every case
This commit is contained in:
Marek Marczykowski-Górecki 2019-10-23 13:50:25 +02:00
commit 4dac995089
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1068,6 +1068,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
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
@ -1100,6 +1101,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))