mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-27 01:10:28 +01:00
errors are redirected in SL.jl
This commit is contained in:
parent
0abcf2a10d
commit
1368dfed5e
@ -74,7 +74,6 @@ function solve_SDP(SDP_problem, solver)
|
|||||||
# @time MathProgBase.writeproblem(SDP_problem, "/tmp/SDP_problem")
|
# @time MathProgBase.writeproblem(SDP_problem, "/tmp/SDP_problem")
|
||||||
|
|
||||||
out = STDOUT
|
out = STDOUT
|
||||||
err = STDERR
|
|
||||||
o = redirect_stdout(solver_logger.handlers["solver"].io)
|
o = redirect_stdout(solver_logger.handlers["solver"].io)
|
||||||
e = redirect_stderr(solver_logger.handlers["solver"].io)
|
e = redirect_stderr(solver_logger.handlers["solver"].io)
|
||||||
|
|
||||||
@ -84,7 +83,6 @@ function solve_SDP(SDP_problem, solver)
|
|||||||
remove_handler(solver_logger, "solver")
|
remove_handler(solver_logger, "solver")
|
||||||
|
|
||||||
redirect_stdout(o)
|
redirect_stdout(o)
|
||||||
redirect_stderr(e)
|
|
||||||
|
|
||||||
if solution_status != :Optimal
|
if solution_status != :Optimal
|
||||||
warn(logger, "The solver did not solve the problem successfully!")
|
warn(logger, "The solver did not solve the problem successfully!")
|
||||||
|
Loading…
Reference in New Issue
Block a user