Ruby on Rails Tuesday, April 27, 2010

TomRossi7 wrote:
> I have an action being called by a monitoring service.
>
> Leaving this out of the log is not "inaccurate",

I'm not sure I agree. The log tells you what Rails has been up to. One
of the things it has been up to is servicing the requests that come from
the monitoring service. Leaving those requests out of the log will
lessen the utility of the log.

Consider: if there were a bug or bottleneck in the monitoring request,
how would you know? If the monitoring service weren't requesting its
action, how would you know?

Picking and choosing in the log is a bad idea.

> anymore than not
> logging static files referenced is the public folder is "inaccurate".

The analogy doesn't hold. The log is specifically a Rails log. Files
in /public aren't served by Rails; therefore, they don't appear in the
log. Your monitoring requests, however, are served by Rails and should
appear in the log.

>
> Thanks,
> Tom

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
Posted via http://www.ruby-forum.com/.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment