Skip to content

Commit

Permalink
fix: remove assets and health check logs
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Aug 11, 2020
1 parent 3a22265 commit 7ccb3fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
# 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 }

Expand Down
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
# 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.
Expand Down
1 change: 1 addition & 0 deletions config/initializers/lograge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# 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"],
Expand Down

0 comments on commit 7ccb3fc

Please sign in to comment.