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

Address the deprecation warnings from the logger #10

Conversation

yuki24
Copy link
Contributor

@yuki24 yuki24 commented Feb 5, 2024

This PR rails/rails#45976 has deprecated the optional argument for the color method in the Active Support:: LogSubscriber, and the graphql-client gem depends on the deprecated interface in the
lib/graphql/client/log_subscriber.rb. As a result, the following deprecation warning would appear when used with Rails 7.1.

DEPRECATION WARNING: Bolding log text with a positional boolean is deprecated and will be removed in Rails 7.2. Use an option hash instead (eg. ).

This PR updates the code to be compatible with both the latest rails and the older ones.

cc @erikdstock @jonallured

This addresses the deprecation warning below:

  DEPRECATION WARNING: Bolding log text with a positional boolean is deprecated and will be removed in Rails 7.2. Use an option hash instead (eg. ).
Copy link

@jonallured jonallured left a comment

Choose a reason for hiding this comment

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

🤩

@rmosolgo rmosolgo added this to the 0.19.1 milestone Feb 5, 2024
@rmosolgo
Copy link
Collaborator

rmosolgo commented Feb 5, 2024

Thanks for this fix!

@rmosolgo rmosolgo merged commit b177b19 into github-community-projects:master Feb 5, 2024
81 checks passed
@yuki24 yuki24 deleted the rails-7-1-deprecation-warnings branch February 5, 2024 15:23
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