-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add ActiveModelSerializers.logger with default null device #1089
Conversation
I don't remember this @bf4 can you refresh me? 😄 |
ref: https://amserializers.slack.com/archives/general/p1440623581000150
|
Also, ref: #1099 (comment)
# railtie
initializer 'active_job.logger' do
ActiveSupport.on_load(:active_job) { self.logger = ::Rails.logger }
end
# https://github.com/rails/rails/blob/7a3ca69959e312a215d5e8144fca79a08654fd89/activejob/lib/active_job/base.rb
ActiveSupport.run_load_hooks(:active_job, self) |
This would be cool, so that we could log stuff such as:
|
👍 |
Add ActiveModelSerializers.logger with default null device
Rubocop fixes for issues introduced by #1089
Based on a discussion in the amserializers slack
It's not used anywhere in this PR, but it could be...