Skip to content

chore: remove stdout/stderr pipe to /dev/null so users can see error logs during VM provisioning#48

Open
kurnoolsaketh wants to merge 2 commits intomainfrom
improvement/show-stdout-and-stderr
Open

chore: remove stdout/stderr pipe to /dev/null so users can see error logs during VM provisioning#48
kurnoolsaketh wants to merge 2 commits intomainfrom
improvement/show-stdout-and-stderr

Conversation

@kurnoolsaketh
Copy link
Copy Markdown
Collaborator

As the title says

@kurnoolsaketh kurnoolsaketh requested a review from motsc as a code owner April 6, 2026 17:42
@kurnoolsaketh kurnoolsaketh changed the title chore: remove stdout/stderr pipe to /dev/null so users can see error logs chore: remove stdout/stderr pipe to /dev/null so users can see error logs during VM provisioning Apr 6, 2026
@motsc
Copy link
Copy Markdown
Contributor

motsc commented Apr 6, 2026

i think a better way might be to log this to a log file because of fact that the vm spawn will detach pid etc

Redirect the detached `tart run` daemon's stderr to
~/.config/tachikoma/logs/tart-run-<vm>.log so users can diagnose
boot failures. Falls back to /dev/null if the log file can't be
created.

- Boot timeout error now includes the log path as a diagnostic hint
- `tachikoma destroy` cleans up the log file
@@ -100,7 +108,15 @@ impl TartRunner for RealTartRunner {
cmd.args(&args_ref);
cmd.stdin(Stdio::null());
cmd.stdout(Stdio::null());
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@motsc what's your thinking for suppressing stdout? Noisy?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kurnoolsaketh ah yes, so stdout from tart run is mostly VM lifecycle noise that would get interleaved with tachikoma's own output since this is a detached daemon. stderr is the useful stuff, so that's the one we capture to the log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants