Skip to content

fix(rust): only use ANSI colors if the output supports it#8070

Merged
thomaseizinger merged 4 commits into
mainfrom
fix/no-ansi-windows-headless
Feb 10, 2025
Merged

fix(rust): only use ANSI colors if the output supports it#8070
thomaseizinger merged 4 commits into
mainfrom
fix/no-ansi-windows-headless

Conversation

@thomaseizinger

@thomaseizinger thomaseizinger commented Feb 9, 2025

Copy link
Copy Markdown
Member

Fixes: #8054.

@vercel

vercel Bot commented Feb 9, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 0:05am

@thomaseizinger thomaseizinger force-pushed the fix/no-ansi-windows-headless branch from 628d129 to dfefb46 Compare February 9, 2025 23:59
@thomaseizinger thomaseizinger marked this pull request as ready for review February 9, 2025 23:59
let log_path = known_dirs::logs().context("Can't compute app log dir")?;

// Logfilter for stderr cannot be reloaded. This is okay because we are using it only for local dev and debugging anyway.
// Logfilter for stdout cannot be reloaded. This is okay because we are using it only for local dev and debugging anyway.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Digging into tracing, i realised our default is actually stdout! I'll make a follow-up to change to stderr.

@jamilbk jamilbk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@thomaseizinger thomaseizinger added this pull request to the merge queue Feb 10, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 10, 2025
@thomaseizinger thomaseizinger added this pull request to the merge queue Feb 10, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 10, 2025
@thomaseizinger thomaseizinger added this pull request to the merge queue Feb 10, 2025
Merged via the queue into main with commit 105c984 Feb 10, 2025
@thomaseizinger thomaseizinger deleted the fix/no-ansi-windows-headless branch February 10, 2025 04:55
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.

Disable ANSI color codes in logging for the windows client

2 participants