about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-26 01:08:31 +0200
committerGitHub <noreply@github.com>2018-05-26 01:08:31 +0200
commitd87649db074b6b9700246d9488f82071d41fcb60 (patch)
tree33a8689d2e652a00dae91487bedc02a8c4f13f54 /config
parentc7ac0396975ba8f8c46edbd504d0ce1c582d1a4b (diff)
Disable AMS logging (#7623)
Especially in production it's just noise and doesn't mix well with the log format
Diffstat (limited to 'config')
-rw-r--r--config/initializers/active_model_serializers.rb2
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)