From 7ccb3fc99f24f9d41b49ff374d76ee41d31418b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Tue, 11 Aug 2020 12:37:12 +0200 Subject: [PATCH] fix: remove assets and health check logs --- config/environments/development.rb | 3 +++ config/environments/production.rb | 3 +++ config/initializers/lograge.rb | 1 + 3 files changed, 7 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 38034757b..e5a65500d 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -50,6 +50,9 @@ Rails.application.configure do # Raises helpful error messages. config.assets.raise_runtime_errors = true + config.assets.logger = false + config.assets.quiet = true + config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 } diff --git a/config/environments/production.rb b/config/environments/production.rb index 0cc1b38e1..ea73ceced 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -52,6 +52,9 @@ Rails.application.configure do # yet still be able to expire them through the digest params. config.assets.digest = true + config.assets.logger = false + config.assets.quiet = true + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # Specifies the header that your server uses for sending files. diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb index 0618fff49..e7cf34513 100644 --- a/config/initializers/lograge.rb +++ b/config/initializers/lograge.rb @@ -3,6 +3,7 @@ Rails.application.configure do # Generate log in JSON config.lograge.formatter = Lograge::Formatters::Json.new + config.lograge.ignore_actions = ['HealthCheckController#index'] config.lograge.custom_options = lambda do |event| { :ddsource => ["ruby"],