diff options
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r-- | config/environments/production.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index ac4a2ccb6..20274cd2b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -20,4 +20,10 @@ Alaveteli::Application.configure do config.action_mailer.delivery_method = :sendmail # so is queued, rather than giving immediate errors config.active_support.deprecation = :notify + + if !AlaveteliConfiguration.exception_notifications_from.blank? && !AlaveteliConfiguration.exception_notifications_to.blank? + middleware.use ExceptionNotifier, + :sender_address => AlaveteliConfiguration::exception_notifications_from, + :exception_recipients => AlaveteliConfiguration::exception_notifications_to + end end |