From a92e7cfc2a88ba7516860c98dcf68095bedf8012 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Tue, 7 Nov 2023 12:53:09 +0100 Subject: [PATCH] more missing Logging qualifiers --- src/ensemble/basic_ensemble_solve.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ensemble/basic_ensemble_solve.jl b/src/ensemble/basic_ensemble_solve.jl index 522e487e83..6f26072552 100644 --- a/src/ensemble/basic_ensemble_solve.jl +++ b/src/ensemble/basic_ensemble_solve.jl @@ -40,7 +40,7 @@ end AggregateLogger(logger::Logging.AbstractLogger) = AggregateLogger(Dict{Symbol, Float64}(),0 , 0.0, 0.0, ReentrantLock(), logger) function Logging.handle_message(l::AggregateLogger, level, message, _module, group, id, file, line; kwargs...) - if convert(LogLevel, level) == LogLevel(-1) && haskey(kwargs, :progress) + if convert(Logging.LogLevel, level) == Logging.LogLevel(-1) && haskey(kwargs, :progress) pr = kwargs[:progress] if trylock(l.lock) || (pr == "done" && lock(l.lock)===nothing) try @@ -131,7 +131,7 @@ function __solve(prob::AbstractEnsembleProblem, name = get(kwargs, :progress_name, "Ensemble") for i in 1:trajectories msg = "$name #$i" - Logging.@logmsg(LogLevel(-1), msg, _id=Symbol("SciMLBase_$i"), progress=0) + Logging.@logmsg(Logging.LogLevel(-1), msg, _id=Symbol("SciMLBase_$i"), progress=0) end end