Skip to content

[v3-1-test] Detect interactive terminal to set colored logging + support override env variables (#56132)#56157

Merged
ashb merged 1 commit intov3-1-testfrom
backport-d08c2d2-v3-1-test
Sep 26, 2025
Merged

[v3-1-test] Detect interactive terminal to set colored logging + support override env variables (#56132)#56157
ashb merged 1 commit intov3-1-testfrom
backport-d08c2d2-v3-1-test

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

After #55824, colored logs were being emitted even when the terminal was
not interactive, causing failures. Environment variables to force color
to be turned on or off were also not being respected.

This resolves those issues and adds unit tests with all combinations of
factors to determine if logs should be colored.
(cherry picked from commit d08c2d2)

Co-authored-by: Ramit Kataria ramitkat@amazon.com

…ort override env variables (#56132)

After #55824, colored logs were being emitted even when the terminal was
not interactive, causing failures. Environment variables to force color
to be turned on or off were also not being respected.

This resolves those issues and adds unit tests with all combinations of
factors to determine if logs should be colored.
(cherry picked from commit d08c2d2)

Co-authored-by: Ramit Kataria <ramitkat@amazon.com>
@ashb ashb marked this pull request as ready for review September 26, 2025 21:07
@ashb ashb merged commit 5355fe0 into v3-1-test Sep 26, 2025
45 checks passed
@ashb ashb deleted the backport-d08c2d2-v3-1-test branch September 26, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants