Skip to content
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

Test logger interface instead of class #200

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

Zogoo
Copy link
Collaborator

@Zogoo Zogoo commented Jan 3, 2024

Original PR is #194

Rails 7.1.0 introduces a new default logger class, ActiveSupport::BroadcastLogger, which does not inherit from Logger. (See: rails/rails#48615.)

Instead of testing for a specific class, we can test the interface.

@Zogoo Zogoo requested a review from jphenow January 3, 2024 15:56
@Zogoo Zogoo self-assigned this Jan 3, 2024
Rails 7.1.0 introduces a new default logger class,
ActiveSupport::BroadcastLogger, which does not inherit from Logger.
(See: rails/rails#48615.)

Instead of testing for a specific class, we can test the interface.
@Zogoo
Copy link
Collaborator Author

Zogoo commented Jan 3, 2024

@jphenow this is a bit urgent PR that fixes Github action for other PRs. Could you please review it?

@jphenow jphenow merged commit 0ba3242 into master Jan 3, 2024
14 checks passed
@jphenow jphenow deleted the active-support-broadcast-logger branch January 3, 2024 16:37
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.

None yet

2 participants