From 597c8079e2e1f7e3ce55328b3d1dca1ed991b5d0 Mon Sep 17 00:00:00 2001 From: KristofferC Date: Fri, 10 May 2024 11:47:31 +0200 Subject: [PATCH] Revert "More cautious legacy_color conversion in Logging (#53280)" This reverts commit 61c3521613767b2af21dfa5cc5a7b8195c5bdcaf. --- stdlib/Logging/src/ConsoleLogger.jl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stdlib/Logging/src/ConsoleLogger.jl b/stdlib/Logging/src/ConsoleLogger.jl index 08e4a8c6b2efe..2da16a3e34b70 100644 --- a/stdlib/Logging/src/ConsoleLogger.jl +++ b/stdlib/Logging/src/ConsoleLogger.jl @@ -156,10 +156,7 @@ function handle_message(logger::ConsoleLogger, level::LogLevel, message, _module # Format lines as text with appropriate indentation and with a box # decoration on the left. color, prefix, suffix = logger.meta_formatter(level, _module, group, id, filepath, line)::Tuple{Union{Symbol,Int},String,String} - lcolor = StyledStrings.Legacy.legacy_color(color) - if !isnothing(lcolor) - color = StyledStrings.Face(foreground=lcolor) - end + color = StyledStrings.Face(foreground=StyledStrings.Legacy.legacy_color(color)) minsuffixpad = 2 buf = IOBuffer() iob = IOContext(buf, stream)