aboutsummaryrefslogtreecommitdiffstats
path: root/vm/starnix
diff options
context:
space:
mode:
authorLaura Peskin <pesk@google.com>2024-02-01 14:44:19 -0800
committerAleksandr Nogikh <nogikh@google.com>2024-02-03 08:35:48 +0000
commit7707b7d287fe389583922439c2f125920ce67ed1 (patch)
tree27a87165e9ecf9a4532e33bf7bf445eaa06d0418 /vm/starnix
parent9df4a174c3fcef2c39b94422e37d8164d8fd5bcb (diff)
vm/starnix: improve fuchsia log output
Adds 3 flags to ffx log: --no-color skips colorizing logs, making them easier to parse --show-metadata includes pids and thread ids in logs --show-full-moniker adds full component monikers instead of abbreviated monikers
Diffstat (limited to 'vm/starnix')
-rw-r--r--vm/starnix/starnix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/starnix/starnix.go b/vm/starnix/starnix.go
index 0b2b20d26..0ba8b8b81 100644
--- a/vm/starnix/starnix.go
+++ b/vm/starnix/starnix.go
@@ -196,7 +196,8 @@ func (inst *instance) startFuchsiaLogs() error {
// `ffx log` outputs some buffered logs by default, and logs from early boot
// trigger a false positive from the unexpected reboot check. To avoid this,
// only request logs from now on.
- cmd := osutil.Command(inst.ffxBinary, "--target", inst.name, "log", "--since", "now")
+ cmd := osutil.Command(inst.ffxBinary, "--target", inst.name, "log", "--since", "now",
+ "--show-metadata", "--show-full-moniker", "--no-color")
cmd.Dir = inst.fuchsiaDirectory
cmd.Stdout = inst.wpipe
cmd.Stderr = inst.wpipe