From 1ec2c1af0ddbfa1617f6bce64baf20b38a6b621f Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 15 Jan 2024 09:29:17 +0400 Subject: [PATCH] type of error appears in yellow --- lib/formatters/basic_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formatters/basic_formatter.rb b/lib/formatters/basic_formatter.rb index d1599e2..7662b82 100644 --- a/lib/formatters/basic_formatter.rb +++ b/lib/formatters/basic_formatter.rb @@ -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)