qemu: log QEMU stderr as logger messages

Mostly for nicity, but also to make debugging start errors an actual possibility.
This commit is contained in:
modeco80
2024-06-23 02:56:17 -04:00
parent 2cc2c6ddf2
commit 8369de53ba

View File

@@ -178,6 +178,10 @@ export class QemuVM extends EventEmitter {
// Start QEMU
this.qemuProcess = execaCommand(split);
this.qemuProcess.stderr?.on('data', (data) => {
self.VMLog().Error("QEMU stderr: {0}", data.toString('utf8'));
})
this.qemuProcess.on('spawn', async () => {
self.VMLog().Info("QEMU started");
await Shared.Sleep(500);