From bfb9c4d8309eab25782a41e4fa52755aeb0e041f Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 24 Dec 2020 21:29:57 +0100 Subject: [PATCH] silence logging for active model serializers --- config/initializers/active_model_serializer.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 config/initializers/active_model_serializer.rb diff --git a/config/initializers/active_model_serializer.rb b/config/initializers/active_model_serializer.rb new file mode 100644 index 000000000..fb58476a2 --- /dev/null +++ b/config/initializers/active_model_serializer.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +require "active_model_serializers" +ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)