Skip to content

Commit

Permalink
LogSubscriber: Fix example syntax for color in deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
zarqman committed Jan 4, 2023
1 parent bfb0a6c commit 2017c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/log_subscriber.rb
Expand Up @@ -181,7 +181,7 @@ def mode_from(options)
if options.is_a?(TrueClass) || options.is_a?(FalseClass)
ActiveSupport.deprecator.warn(<<~MSG.squish)
Bolding log text with a positional boolean is deprecated and will be removed
in Rails 7.2. Use an option hash instead (eg. `color(:red, "my text", bold: true)`).
in Rails 7.2. Use an option hash instead (eg. `color("my text", :red, bold: true)`).
MSG
options = { bold: options }
end
Expand Down

0 comments on commit 2017c27

Please sign in to comment.