On Mon, Sep 28, 2009 at 7:22 PM, Greg Willits <
[email protected]> wrote:

>
> I need to run some info/debug logging in production environment to find
> a very elusive problem.
>
> However, I have load balancers which whack a very simple request very
> frequently to ensure the entire app stack is active. I have a controller
> with one action dedicated to this monitoring task.
>
> I would really like to stop that entire request from being logged to
> eliminate the massive amount of noise it generates with info & debug
> messages. So something in the header of the controller would seem
> appropriate if possible.
>
> I've seen several questions like mine, but no solid answers. I've tried
> the suggestions found here to no avail.
>
> http://www.ruby-forum.com/topic/163669
> http://www.ruby-forum.com/topic/82141
>
> Any new thoughts?
>
> -- gw
>

The way I do it:

class PulseController
  def logger
  end

  def index
    # render some text if you want a monitor of some sort
  end
end

then route whatever your load balancer hits to this controller and you're
good.

Jason

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to