|
|
@ -31,7 +31,6 @@ class AnsiFormatter < SemanticLogger::Formatters::Color |
|
|
|
end |
|
|
|
|
|
|
|
def call(log, logger) |
|
|
|
@regex_redirected ||= build_regex_redirected # called once when Rails gets ready! |
|
|
|
log = alter(log) |
|
|
|
|
|
|
|
self.log = log |
|
|
@ -121,6 +120,7 @@ class AnsiFormatter < SemanticLogger::Formatters::Color |
|
|
|
end |
|
|
|
elsif log.message =~ /Redirected/ |
|
|
|
log.level = :debug |
|
|
|
@regex_redirected ||= build_regex_redirected # called once when Rails gets ready! |
|
|
|
log.message = two_captures_last_as_bold(log.message, @regex_redirected) |
|
|
|
end |
|
|
|
elsif log.exception |
|
|
|