Skip to content

Bolding log text with positional boolean to be deprecated in Rails 7.2 #108

@connorgurney

Description

@connorgurney

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions