diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/defaults.yml | 2 | ||||
-rw-r--r-- | config/initializers/exception_filter.rb | 10 | ||||
-rw-r--r-- | config/locales/errors.en.yml | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/config/defaults.yml b/config/defaults.yml index daef122..9eccb5e 100644 --- a/config/defaults.yml +++ b/config/defaults.yml @@ -81,7 +81,7 @@ development: <<: *cert_options <<: *common <<: *service_levels - admins: [blue, admin, admin2] + admins: [blue, red, staff] domain: example.org secret_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' reraise_errors: true diff --git a/config/initializers/exception_filter.rb b/config/initializers/exception_filter.rb new file mode 100644 index 0000000..18c74d9 --- /dev/null +++ b/config/initializers/exception_filter.rb @@ -0,0 +1,10 @@ +class ActionDispatch::DebugExceptions + def log_error_with_exception_filter(env, wrapper) + if wrapper.exception.is_a? ActionController::RoutingError + return + else + log_error_without_exception_filter env, wrapper + end + end + alias_method_chain :log_error, :exception_filter +end diff --git a/config/locales/errors.en.yml b/config/locales/errors.en.yml index e0a909f..a8e7c6e 100644 --- a/config/locales/errors.en.yml +++ b/config/locales/errors.en.yml @@ -9,4 +9,4 @@ en: text: not_found: "You may have mistyped the address or the page may have moved." server_error: The problem has been logged and we will look into it. - not_found: Not found. + #not_found: Not found. |