Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Copy link

github-actions bot commented Sep 26, 2025

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
boring-cyborg bot added the area:logging label Sep 26, 2025
ashb marked this pull request as ready for review September 26, 2025 21:07
ashb merged commit 5355fe0 into v3-1-test Sep 26, 2025
45 checks passed
ashb deleted the backport-d08c2d2-v3-1-test branch September 26, 2025 21:12
potiuk mentioned this pull request Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants