Skip to content

Commit

Permalink
Merge pull request #1318 from alphagov/use-application-logger-for-dev…
Browse files Browse the repository at this point in the history
…elopment

Revert change to use rails default logger when running locally
  • Loading branch information
stephencdaly committed Jul 17, 2024
2 parents 84e57f0 + 0244ba3 commit adc7349
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@
# Raise error when a before_action's only/except options reference missing actions
config.action_controller.raise_on_missing_callback_actions = true

# For development - to prevent logs from being noisy, we use the default rails logger. In application.rb we configure
# a custom logger that adds additional context to logs to make them easier to search and manipulate in Splunk.
# To test the custom logger that we use in production locally, comment this out.
config.logger = ActiveSupport::Logger.new($stdout)
.tap { |logger| logger.formatter = config.log_formatter }

# Make request logs less noisy when running locally. To test the additional logging context we add for production,
# comment this line out.
config.lograge.custom_options = nil
Expand Down

0 comments on commit adc7349

Please sign in to comment.