Skip to content

fix(supervisor): keep client JSON output clean - #994

Merged
kvinwang merged 1 commit into
masterfrom
codex/fix-supervisor-client-json-output
Aug 4, 2026
Merged

fix(supervisor): keep client JSON output clean#994
kvinwang merged 1 commit into
masterfrom
codex/fix-supervisor-client-json-output

Conversation

@kvinwang

@kvinwang kvinwang commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Send Supervisor client tracing output to stderr so stdout remains valid machine-readable JSON.

Verification

  • cargo test --manifest-path dstack/Cargo.toml -p supervisor-client
  • cargo fmt --manifest-path dstack/Cargo.toml --all
  • git diff --check

Copilot AI lite review requested due to automatic review settings August 4, 2026 11:19

Copilot AI left a comment

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.

Pull request overview

This PR ensures the supervisor-client keeps its stdout strictly machine-readable JSON by redirecting tracing output to stderr, preventing log lines from corrupting JSON consumers.

Changes:

  • Configure tracing_subscriber to write formatted tracing output to stderr instead of stdout.
  • Preserve existing JSON output behavior via println!("{}", serde_json::to_string(...)) on stdout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kvinwang
kvinwang enabled auto-merge August 4, 2026 11:23
@kvinwang
kvinwang merged commit b5c8525 into master Aug 4, 2026
16 checks passed
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