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

Switch from stderrlog to env_logger to resolve security issue with atty #535

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

andrews05
Copy link
Collaborator

The atty dependency of stderrlog is unmaintained with an outstanding security issue that we need to address. @AlexTMjugador has apparently filed a PR with stderrlog to switch to is-terminal but there doesn't appear to be any movement on it. Instead I thought it might be good to switch to env_logger which is more flexible, better maintained, and much more widely used.

The only difference to the user is some changes to colours:
Info is now uncoloured (was yellow) - I've done this explicitly as oxipng uses it for normal user output
Warn is now yellow (was magenta)
Debug is now blue (was cyan)
Trace is now cyan (was blue)

Copy link
Collaborator

@AlexTMjugador AlexTMjugador left a comment

Choose a reason for hiding this comment

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

Looks good to me, it's good to see someone noticed my PR 😂

@shssoichiro shssoichiro merged commit b4e98a4 into shssoichiro:master Jul 14, 2023
11 checks passed
@andrews05 andrews05 deleted the env-logger branch July 14, 2023 20:03
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.

3 participants