diff --git a/app/controllers/error_controller.rb b/app/controllers/error_controller.rb deleted file mode 100644 index 97ac5e57f..000000000 --- a/app/controllers/error_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ - -class ErrorController < ApplicationController - - def render_error - render 'error/sorry' - end - -end diff --git a/config/environments/production.rb b/config/environments/production.rb index 026568c9d..572e167f5 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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 ] @@ -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))