Displaying 3 results from an estimated 3 matches for "logsubscrib".
Did you mean:
  logsubscriber
  
2011 Apr 25
3
Active Record database time logging
...ding of the code + experiments suggests that any database time
after the render is not counted.
It seems to me that in controller_runtime.rb in Active Record,
append_info_to_payload should in fact read
def append_info_to_payload(payload)
  super
  payload[:db_runtime] = db_runtime +
ActiveRecord::LogSubscriber.reset_runtime
end
Is this just an oversight?
Fred
-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to rubyonrai...
2012 Sep 25
9
Any rails experts able to offer some advice?
Hello all.
#1 I am working on a rails3 gem called Yarder 
(https://github.com/rurounijones/yarder). The goal of this gem is to 
replace the rails logging system with one that is JSON based rather than 
string based.
#2 To this end I also recently asked this list about making the 
LogSubscribers subscriptions to ActiveRecord::Notifications configurable 
and am looking at submitting a patch request.
However for both of these I have rather run into a brick wall.
#1 Yarder works (mostly, I have not finished or refactored and there are 
probably bugs) but it has no tests. The reasons for...
2011 Apr 15
0
Suppressing log line for partials
...at my production.log file gets
pretty cluttered and large quickly and it makes it more difficult to
use. I like most of the messages, I just don''t see a need for taking
up a line for each partial that is rendered. The logging is done in
action_pack in the log_subscriber file here:
  class LogSubscriber < ActiveSupport::LogSubscriber
    def render_template(event)
      message = "Rendered #{from_rails_root(event.payload[:identifier])}"
      message << " within #{from_rails_root(event.payload[:layout])}"
if event.payload[:layout]
      message << (" (%.1f...