diff options
author | Seb Bacon <seb@mysociety.org> | 2012-01-09 11:17:54 +0000 |
---|---|---|
committer | Seb Bacon <seb@mysociety.org> | 2012-01-09 11:17:54 +0000 |
commit | 882095908f1c0973e80ae65d5aaafdeb61a9aac7 (patch) | |
tree | 125614a940982a3a883deb1d188d19c6cb8b6bcd | |
parent | c8e10d0654e471c637c462ef80a0484c0a008343 (diff) |
Send email notifications on exceptions
-rw-r--r-- | config/environment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb index 17ded987e..f2164f1c8 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -149,3 +149,6 @@ require 'i18n_fixes.rb' require 'rack_quote_monkeypatch.rb' require 'world_foi_websites.rb' require 'alaveteli_external_command.rb' + +ExceptionNotification::Notifier.sender_address = MySociety::Config::get('EXCEPTION_NOTIFICATIONS_FROM') +ExceptionNotification::Notifier.exception_recipients = MySociety::Config::get('EXCEPTION_NOTIFICATIONS_TO') |