Skip to content

Commit

Permalink
Don't show detailed error logs in production
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Aug 12, 2022
1 parent 0dab441 commit d751ff5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 0 additions & 8 deletions app/controllers/error_controller.rb

This file was deleted.

9 changes: 8 additions & 1 deletion config/environments/production.rb
Expand Up @@ -31,7 +31,7 @@
# config.force_ssl = true

# See everything in the log (default is :info)
config.log_level = :warn
config.log_level = :info

# Prepend all log lines with the following tags
# config.log_tags = [ :subdomain, :uuid ]
Expand Down Expand Up @@ -61,6 +61,13 @@
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify

# Show raw exceptions
config.action_dispatch.show_exceptions = false
# Show full error reports
config.consider_all_requests_local = false

#config.exceptions_app = self.routes

# Add configuration option for STDOUT logging
if ENV["RAILS_LOG_TO_STDOUT"].present?
config.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
Expand Down

0 comments on commit d751ff5

Please sign in to comment.