Skip to content

Commit

Permalink
Fix Logging use for v1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed May 13, 2024
1 parent 125256e commit e9adbe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end

function no_metadata_metafmt(level::Logging.LogLevel, _module, group, id, file, line)
@nospecialize
color = Logging.default_logcolor(level)
color = (@static VERSION < v"1.12.0-" ? Logging : Base.CoreLogging).default_logcolor(level)
prefix = string(level == Logging.Warn ? "Warning" : string(level), ':')
return color, prefix, ""
end
Expand Down

0 comments on commit e9adbe6

Please sign in to comment.