1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-09-13 08:35:40 +02:00

add and remove log Handler in the same function (solve_SDP)

This commit is contained in:
kalmar 2017-03-20 22:11:26 +01:00
parent 9a295da1bd
commit 87cfb742bf
2 changed files with 2 additions and 1 deletions

View File

@ -98,6 +98,8 @@ function κandA(name::String, sdp_constraints, Δ::GroupAlgebraElement, solver::
end
end
remove_handler(solver_logger, "solver_log")
κ_fname, A_fname = κSDPfilenames(name)
if κ > 0
save(κ_fname, "κ", κ)

View File

@ -84,7 +84,6 @@ function solve_SDP(SDP_problem, solver)
t = @timed solution_status = JuMP.solve(SDP_problem)
info(logger, timed_msg(t))
Base.Libc.flush_cstdio()
remove_handler(solver_logger, "solver")
redirect_stdout(o)