From e770cc218473a1722d5920c92a0e642c4c0c9128 Mon Sep 17 00:00:00 2001 From: Laura Peskin Date: Mon, 23 Oct 2023 21:18:47 -0700 Subject: vm/starnix: `-debug` sends kernel and syzkaller logs to stdout Now these logs go to stdout when syz-manager runs with the `-debug` flag. --- vm/starnix/starnix.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/starnix/starnix.go b/vm/starnix/starnix.go index 657d173e9..7d52c6c61 100644 --- a/vm/starnix/starnix.go +++ b/vm/starnix/starnix.go @@ -137,7 +137,11 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { func (inst *instance) boot() error { inst.port = vmimpl.UnusedTCPPort() // Start output merger. - inst.merger = vmimpl.NewOutputMerger(nil) + var tee io.Writer + if inst.debug { + tee = os.Stdout + } + inst.merger = vmimpl.NewOutputMerger(tee) inst.ffx("doctor", "--restart-daemon") -- cgit mrf-deployment