|
|
@ -83,7 +83,7 @@ class BasicFormatter < SemanticLogger::Formatters::Color |
|
|
|
stack = log.exception.backtrace.select { |line| line.starts_with?(root_path) } |
|
|
|
stack = stack.map { |line| line.delete_prefix("#{root_path}/") } |
|
|
|
|
|
|
|
"#{ANSI_REVERSED_ERROR}#{log.exception.class}#{color_map.clear}: #{color}#{log.exception.message}#{color_map.clear}#{backtrace(stack)}" # rubocop:disable Layout/LineLength |
|
|
|
"#{ANSI_REVERSED_WARNING}#{log.exception.class}#{color_map.clear} #{ANSI_REVERSED_ERROR}#{log.exception.message}#{color_map.clear}#{backtrace(stack)}" # rubocop:disable Layout/LineLength |
|
|
|
end |
|
|
|
|
|
|
|
def call(log, logger) |
|
|
|