Skip to content

Fix deprecation warning from Rails 7.2, use kwarg for bold option in log subscriber #1058

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

Conversation

matthutchinson
Copy link

@matthutchinson matthutchinson commented Jun 22, 2023

Why?

Fixes this warning

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. color("my text", :red, bold: true))

This stems from the use of the color function in log_subscriber.rb

Why?

Fixes 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. `color("my text", :red, bold: true)`)
@cla-checker-service
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
028cad9

Please, read and sign the above mentioned agreement if you want to contribute to this project

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.

1 participant