I don't really know that much about the interns of Rails.logger.error
method but how about overwriting it for your app?
use alias on the old method and do something like this:
alias :old_error :error
def error
# send your mail or whatever
old_error
end
would at least do its job without
On Sun, Jan 13, 2013 at 5:42 AM, Crispin Schäffler
crispinschaeff...@gmail.com wrote:
I don't really know that much about the interns of Rails.logger.error method
but how about overwriting it for your app?
use alias on the old method and do something like this:
alias :old_error :error
def
Yeah, as I told, i don't know the insides of the error method or the
correct specification.. Just wanted to give a hint how you could do it to
get it to work quickly and without much trouble.
And in my opinion its not that dirty to alias a function if you know what
you do.
Sure you can use a
Just wanted to give a hint that it's not that hard to make it work.
Your approach is much cleaner and should be used of course.
Am Sonntag, 13. Januar 2013 13:00:50 UTC+1 schrieb Jordon Bedwell:
On Sun, Jan 13, 2013 at 5:42 AM, Crispin Schäffler
crispins...@gmail.com javascript: wrote:
I
On Sun, Jan 13, 2013 at 6:06 AM, Crispin Schäffler
crispinschaeff...@gmail.com wrote:
Yeah, as I told, i don't know the insides of the error method or the correct
specification.. Just wanted to give a hint how you could do it to get it to
work quickly and without much trouble.
And in my
On Jan 12, 1:47 pm, vhochstein vhochst...@googlemail.com wrote:
Hi,
I would like to receive an email, if anywhere in my application a
Rails.logger.errror method is triggered.
I know about all these exception_notfiers, but Rails.logger.error is
triggered without an exception as well in my
6 matches
Mail list logo