> We are currently using "rescue_action_in_public" in application.rb to
> catch exceptions and send us alert emails.  However, we have recently
> begun getting thousands of invalid requests with weird and very long
> URLS.  My guess is that it is Windows viruses that the user isn't even
> aware of since they are mainly coming from Windows machines and lots  
> of
> different IP addresses. Our problem is the at it's clogging up our log
> files and I think these are innocent (but annoying) enough to ignore.
>
> What's the cleanest way to detect an invalid exception based on the  
> URL
> and not have it logged?

Not a direct answer to your question, but you may consider switching  
your setup to use hoptoad and then if they haven't already integrated  
my patch to ignore certain user agents, patch it do to so.  Or just  
look at my patch and adjust it to fit your scenario.

http://hoptoadapp.com/welcome
http://pjkh.com/articles/2009/01/06/rails-exceptions-hoptoad-and-annoying-user-agents/

No affiliation, just like their service...

-philip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to