When I run rails test in an app running the edge version of Rails, I receive the following 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)). (called from formatted_in at /usr/local/lib/ruby/gems/3.2.0/gems/kredis-1.3.0.1/lib/kredis/log_subscriber.rb:18)
This stems from the use of the color function in log_subscriber.rb:
|
color " Kredis #{type} (#{event.duration.round(1)}ms) #{event.payload[:message]}", color, bold: true |
I appreciate that this won't be an issue for most people yet but it feels better to report it now and get ahead of the curve.