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:
@@ -178,6 +178,10 @@ export class QemuVM extends EventEmitter {
|
|||||||
// Start QEMU
|
// Start QEMU
|
||||||
this.qemuProcess = execaCommand(split);
|
this.qemuProcess = execaCommand(split);
|
||||||
|
|
||||||
|
this.qemuProcess.stderr?.on('data', (data) => {
|
||||||
|
self.VMLog().Error("QEMU stderr: {0}", data.toString('utf8'));
|
||||||
|
})
|
||||||
|
|
||||||
this.qemuProcess.on('spawn', async () => {
|
this.qemuProcess.on('spawn', async () => {
|
||||||
self.VMLog().Info("QEMU started");
|
self.VMLog().Info("QEMU started");
|
||||||
await Shared.Sleep(500);
|
await Shared.Sleep(500);
|
||||||
|
|||||||
Reference in New Issue
Block a user