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
джерело de3c7edd4f d5b0a6e5b6
коміт 4dac995089
Не вдалося знайти GPG ключ що відповідає даному підпису
Ідентифікатор GPG ключа: 063938BA42CFA724

@ -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))