diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-26 01:08:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 01:08:31 +0200 |
commit | d87649db074b6b9700246d9488f82071d41fcb60 (patch) | |
tree | 33a8689d2e652a00dae91487bedc02a8c4f13f54 | |
parent | c7ac0396975ba8f8c46edbd504d0ce1c582d1a4b (diff) |
Disable AMS logging (#7623)
Especially in production it's just noise and doesn't mix well with the log format
-rw-r--r-- | config/initializers/active_model_serializers.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/active_model_serializers.rb b/config/initializers/active_model_serializers.rb index b0230267d..0e69e1d96 100644 --- a/config/initializers/active_model_serializers.rb +++ b/config/initializers/active_model_serializers.rb @@ -1,3 +1,5 @@ ActiveModelSerializers.config.tap do |config| config.default_includes = '**' end + +ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT) |