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

Set ActiveResource::Base.logger during boot #411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seanpdoyle
Copy link

@seanpdoyle seanpdoyle commented Jan 4, 2025

When left un-configured during boot, default the value of ActiveResource::Base.logger to Rails.logger.

This change draws inspiration from the corresponding lines in the active_record/railtie.rb file's active_record.logger initializer.

When left un-configured during boot, default the value of
`ActiveResource::Base.logger` to `Rails.logger`.

This change draws inspiration from the corresponding lines in the
`active_record/railtie.rb` file's [active_record.logger][] initializer.

[active_resource.logger]: https://github.com/rails/rails/blob/1b327ad4ed0fe5e8c2f1f795e2cf63f90a9833b5/activerecord/lib/active_record/railtie.rb#L97-L99
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