diff --git a/src/Suppressor.jl b/src/Suppressor.jl index db4904e..c99f90f 100644 --- a/src/Suppressor.jl +++ b/src/Suppressor.jl @@ -25,7 +25,7 @@ if has_logstate else macro with_logstate(logstate, expr) quote - @with($(Base.CoreLogging.CURRENT_LOGSTATE) => $(esc(logstate)), $(esc(expr))) + Base.ScopedValues.@with($(Base.CoreLogging.CURRENT_LOGSTATE) => $(esc(logstate)), $(esc(expr))) end end end