I''m working on an app that uses the instructions at
http://wiki.rubyonrails.com/rails/show/HowtoSendEmailWhenRailsThrowsAnException
to send emails on exceptions. We didn''t use the def local_request?
line
and it''s always behaved somewhat strangely.
It has always sent emails in development mode, even though the wiki
article seems to indicate it will only do that if you explicitly set it
to (by overriding local_request?()). Recently, it completely stopped
sending emails when in Production, and I can''t really figure out why.
When I check the logs in development mode, I see the email it has sent
and so forth. In production mode, I get a "Dispatcher failed to catch:
ERROR" in the logs and it doesn''t appear to even try to send the
email.
At this point I have absolutely no idea what''s going on. The change in
behavior coincides with upgrading the files in the app with 0.13.1...
the only thing I can think of is a change to the dispatch.fcgi is
causing this, though the same behavior happens under CGI.
Can someone point me in the right direction here?
Thanks,
Ben