cirandas.net

ref: master

config/initializers/exception_notification.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
unless NOOSFERO_CONF['exception_recipients'].blank?
  Noosfero::Application.config.middleware.use ExceptionNotification::Rack,
    :email => {
      :sender_address => "noreply@#{Noosfero.default_hostname}",
      :email_prefix => "[Noosfero ERROR] ",
      :exception_recipients => NOOSFERO_CONF['exception_recipients']
    }
end

# show full backtrace
Rails.backtrace_cleaner.remove_silencers!