Skip to content

Commit 0b7ea5d

Browse files
committed
small fixes
1 parent e11636f commit 0b7ea5d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/interface/interface.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ All keyword arguments are passed to the [`initialize_state!`](@ref)`(problem, al
4444
"""
4545
function solve!(problem::Problem, algorithm::Algorithm, state::State; kwargs...)
4646
initialize_state!(problem, algorithm, state; kwargs...)
47-
log!(problem, algorithm, state; context = :Start)
47+
log!(problem, algorithm, state, :Start)
4848
while !is_finished!(problem, algorithm, state)
49-
log!(problem, algorithm, state; context = :PreStep)
49+
log!(problem, algorithm, state, :PreStep)
5050
increment!(state)
5151
step!(problem, algorithm, state)
52-
log!(problem, algorithm, state; context = :PostStep)
52+
log!(problem, algorithm, state, :PostStep)
5353
end
54-
log!(problem, algorithm, state; context = :Stop)
54+
log!(problem, algorithm, state, :Stop)
5555
return state
5656
end
5757

src/logging.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ Specific algorithms can associate other events with other contexts.
9393
See also the scoped value [`AlgorithmsInterface.algorithm_logger`](@ref).
9494
"""
9595
struct AlgorithmLogger
96-
actions::Dict{Symbol, LogAction}
96+
actions::Dict{Symbol, LoggingAction}
9797
end
98-
AlgorithmLogger(args...) = AlgorithmLogger(Dict{Symbol, LogAction}(args...))
98+
AlgorithmLogger(args...) = AlgorithmLogger(Dict{Symbol, LoggingAction}(args...))
9999

100100
"""
101101
const LOGGING_ENABLED = Ref(true)

0 commit comments

Comments
 (0)