exception_notification settings not being used

I have the following in my development.rb, staging.rb, and production.rb

config.middleware.use ExceptionNotifier,
  :email => {
    :email_prefix => "[Exception] ",
    :sender_address => %{"XXX" <XXX@example.com>},
    :exception_recipients => %w{XXX@ezample.com}

These settings are not being taken by the Exception Notifier gem. It still uses the defaults.

Any help would be greatly appreciated!


Hmm just skimming over https://github.com/rails/exception_notification it seems the :email is not necessary?

Whatever::Application.config.middleware.use ExceptionNotifier,
  :email_prefix => "[Exception] ",
  :sender_address => %{"XXX" <XXX@XXX.com>},
  :exception_recipients => %w{XXX@XXX.com}

Edit: The above only works for the gem exception_notifier (which is what is checked out via gem install exception_notifier (disregard the misleading github URL)

You do however probably want to use the newer gem: gem install exception_notification which is the name of the newer gem (the one this has evolved to)

Need Your Help

How to exclude .cpan folder from rsync?

backup rsync cpan permission-denied

I use rsync to backup the home directory (ext4) of my Ubuntu installation. I use the following command to copy files and folders to a remote server (ext4).

R: calculating the change in a value from one observation to the next within a data frame with cases and observations

r dataframes

Hello I'm new to R and am having trouble completing what should be a fairly simple task. I'm sure there is a straightforward solution, but I couldn't find it online (including on StackOverflow)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.