Skip to content

Commit

Permalink
more missing Logging qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepijn de Vos committed Nov 7, 2023
1 parent f1494b8 commit a92e7cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ensemble/basic_ensemble_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end
AggregateLogger(logger::Logging.AbstractLogger) = AggregateLogger(Dict{Symbol, Float64}(),0 , 0.0, 0.0, ReentrantLock(), logger)

Check warning on line 40 in src/ensemble/basic_ensemble_solve.jl

View check run for this annotation

Codecov / codecov/patch

src/ensemble/basic_ensemble_solve.jl#L40

Added line #L40 was not covered by tests

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
Expand Down Expand Up @@ -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

Check warning on line 135 in src/ensemble/basic_ensemble_solve.jl

View check run for this annotation

Codecov / codecov/patch

src/ensemble/basic_ensemble_solve.jl#L130-L135

Added lines #L130 - L135 were not covered by tests
end

Expand Down

0 comments on commit a92e7cf

Please sign in to comment.