Skip to content

Regression, use of _min_enabled_level broken in logging ecosystem. #60317

@EdsterG

Description

@EdsterG

Some of the packages that depend on Base.CoreLogging._min_enabled_level are broken after #57591. One of which is Logging2, JuliaLogging/Logging2.jl#10.

The easiest fix is to add the following:

isless(a::Integer, b::LogLevel) = isless(a, b.level)
isless(a::LogLevel, b::Integer) = isless(a.level, b)

Does this seem like a reasonable fix? @IanButterworth

Metadata

Metadata

Assignees

No one assigned

    Labels

    loggingThe logging framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions