3 ms·
Nice, I've often needed this as an initial look at where the slowpoints might be, and hacked my own solution, this will be helpful.
by jrochkind1 13y ago
Nice, I've often needed this as an initial look at where the slowpoints might be, and hacked my own solution, this will be helpful.
- nate 13y agoAwesome to hear! The version I used at the Obama campaign had other bells and whistles like color coding the log entry. I just arbitrarily picked some time I thought was slow, made it read, less slow, made it yellow, others green. That might be a nice addition still.
- coderaptor 13y agoI've found timestamping Rails.logger output helps considerably, and offers a similar - yet more generic - insight.
- jrochkind1 13y agoIt is a mystery to me why Rails.logger _takes away_ the timestamping that default stdlib Logger adds by default usually -- and further than this, makes it harder to customize the Rails Logger output than it should be (or has Rails finally fixed that?)