Open
Description
This is a regression from v1.10, but OK to close if considered normal.
julia> using Logging; f() = with_logger(NullLogger()) do
@debug "f"
end
julia> @allocations f(); @allocations f()
8 # was 0 on v1.10
NullLogger()
was useful to make logging macros essentially free when not used.
A workaround is to use Logging.disable_logging(Logging.Debug)
.