Permalink
Browse files

Configure exception notification

  • Loading branch information...
1 parent c788f99 commit ebaf5ac5c6f689ee9e03721a5eb18163f1ac6395 @jystewart jystewart committed Jan 3, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 config/initializers/exception_notification.rb
View
6 config/initializers/exception_notification.rb
@@ -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

0 comments on commit ebaf5ac

Please sign in to comment.