Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Configure exception notification

  • Loading branch information...
commit ebaf5ac5c6f689ee9e03721a5eb18163f1ac6395 1 parent c788f99
James Stewart jystewart authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 config/initializers/exception_notification.rb
6 config/initializers/exception_notification.rb
View
@@ -0,0 +1,6 @@
+unless Rails.env.development? or Rails.env.test?
+ Rails.application.config.middleware.use ExceptionNotifier,
+ :email_prefix => "[#{Rails.application.split('::').first}] ",
+ :sender_address => %{"Winston Smith-Churchill" <winston@alphagov.co.uk>},
+ :exception_recipients => %w{govuk-dev@digital.cabinet-office.gov.uk}
+end
Please sign in to comment.
Something went wrong with that request. Please try again.