Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy over windows compat logic for colored log output #4474

Merged
merged 4 commits into from
Jan 3, 2022

Conversation

nathaniel-may
Copy link
Contributor

@nathaniel-may nathaniel-may commented Dec 13, 2021

Description

I originally added this PR to try and solve compatibility issues for shells not displaying color in #4443 , but it turns out those are at the shell level (not system) which is inaccessible to Colorama. While exploring that, it looks like we didn't copy over the existing Colorama windows compatibility logic from the old logging module, so this PR puts that back in place.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

@nathaniel-may nathaniel-may marked this pull request as draft December 13, 2021 21:19
@nathaniel-may
Copy link
Contributor Author

Tested this change as is, and it definitely doesn't work.

@nathaniel-may
Copy link
Contributor Author

this didn't work either, but we should probably still use the same colorama setup.

@nathaniel-may nathaniel-may marked this pull request as ready for review December 14, 2021 15:17
@nathaniel-may
Copy link
Contributor Author

To address the previous comments, those commits were attempts to solve #4443 that failed. However, this PR is still open because I think it's valuable to include the windows color setup that was included in the legacy logger.

Copy link
Member

@emmyoop emmyoop left a comment

Choose a reason for hiding this comment

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

LGTM

@nathaniel-may nathaniel-may changed the title make color system compatible copy over windows compat logic for colored log output Jan 3, 2022
@nathaniel-may nathaniel-may merged commit 6fae647 into main Jan 3, 2022
@nathaniel-may nathaniel-may deleted the nate/bug-4443 branch January 3, 2022 17:37
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
automatic commit by git-black, original commits:
  6fae647
@leahwicz leahwicz mentioned this pull request Jun 2, 2022
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants