Skip to content

Commit

Permalink
Revert "More cautious legacy_color conversion in Logging (JuliaLang#5…
Browse files Browse the repository at this point in the history
…3280)"

This reverts commit 61c3521.
  • Loading branch information
KristofferC authored and lazarusA committed Jul 12, 2024
1 parent ac541c1 commit 07459d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions stdlib/Logging/src/ConsoleLogger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 07459d3

Please sign in to comment.