Mocoso Joel Chippindale's occasional blog.

02 February 2008

Exception notifier

Once installed the exception notifier plugin will send emails to your whenever your application raises an exception.

It's a sinch to install making it no brainer for low/medium traffic rails apps.

  1. Install exception notifier

    script/plugin install \
    http://dev.rubyonrails.org/svn/rails/plugins/exception_notification/

  2. Configure by adding to the list of email address you want to receive notifications your production environment

    ExceptionNotifier.exception_recipients = %w(foo@bar.com)
    ExceptionNotifier.sender_address = %w(exception.notifier@bar.com)

Deploy and that's it, you're done.

Update - 11 Feb 08

Edge rails changeset 8669 breaks the plugin but Lourens has posted a neat fix.