Add ActiveModelSerializers.logger with default null device#1089
Add ActiveModelSerializers.logger with default null device#1089NullVoxPopuli merged 1 commit intorails-api:masterfrom
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...