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 #194

Closed

Conversation

elliterate
Copy link

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.

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.
@elliterate
Copy link
Author

Until this is merged and released, the following workaround may be used:

SamlIdp.configure do |config|
  config.logger = -> (msg) { Rails.logger.info(msg) }
end

@Zogoo Zogoo self-requested a review December 21, 2023 20:38
Copy link
Collaborator

@Zogoo Zogoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Zogoo
Copy link
Collaborator

Zogoo commented Jan 3, 2024

@elliterate I'm moving your changes to a new PR because the git hub action is not triggering with your branch.
Many thanks for your PR. 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants