Skip to content

Conversation

Hampei
Copy link

@Hampei Hampei commented Oct 6, 2025

Fixed for 7.2 in 6286722

But the warning is already present from rails 7.1.2 (7.2 is even an error, not a warning).

The previous fix turned the positional boolean into {color: true}, but the only keys that do anything are bold/italic/underline, and the old true stood for bold, see: https://github.com/rails/rails/blob/v7.1.5.2/activesupport/lib/active_support/log_subscriber.rb#L190 and https://github.com/rails/rails/blob/v7.1.5.2/activesupport/lib/active_support/log_subscriber.rb#L70

Arguments remain the same for for 7.2 https://github.com/rails/rails/blob/v7.2.2.2/activesupport/lib/active_support/log_subscriber.rb#L170 and 8.0 https://github.com/rails/rails/blob/v7.2.2.2/activesupport/lib/active_support/log_subscriber.rb#L170

No spec changes, since there is no appraisals, nor any existing specs around this.

@Hampei Hampei force-pushed the hh_log_subscriber71_warning branch from 86f0977 to 8337b70 Compare October 6, 2025 15:35
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