|
@ -30,7 +30,6 @@ class AnsiFormatter < SemanticLogger::Formatters::Color |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def call(log, logger) |
|
|
def call(log, logger) |
|
|
# puts caller_locations(1, 15) |
|
|
|
|
|
log = alter(log) |
|
|
log = alter(log) |
|
|
|
|
|
|
|
|
self.log = log |
|
|
self.log = log |
|
@ -41,7 +40,9 @@ class AnsiFormatter < SemanticLogger::Formatters::Color |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def reject(log) |
|
|
def reject(log) |
|
|
true if log.name == 'ActionView::Base' && log.message.starts_with?(' Rendering') |
|
|
|
|
|
|
|
|
return true if log.name == 'ActionView::Base' && log.message.starts_with?(' Rendering') |
|
|
|
|
|
|
|
|
|
|
|
true if log.name == 'Rails' && log.message.starts_with?('Loaded') |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
private |
|
|
private |
|
|