search for: logsubscribers

Displaying 3 results from an estimated 3 matches for "logsubscribers".

Did you mean: logsubscriber
2011 Apr 25
3
Active Record database time logging
I''ve been having a look through the code responsible for printing how much time was spent in Active Record at the end of an action. My reading 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
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 thi...
2011 Apr 15
0
Suppressing log line for partials
I have a lot of partials, so I find that 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