1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-24 02:00:30 +01:00

redirect stderr to full.log

This commit is contained in:
kalmar 2017-03-22 13:24:36 +01:00
parent 7796b0b028
commit a3779fb50a
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,8 @@ function check_property_T(name::String, ID, generate_B₄::Function,
mkdir(name)
end
add_handler(logger, DefaultHandler("./$name/full.log", DefaultFormatter("{date}| {msg}")), "full")
add_handler(logger, DefaultHandler("./$name/full.log", DefaultFormatter("{date}| {msg}")), "full_log")
e = redirect_stderr(logger.handlers["full_log"].io)
info(logger, "Group: $name")
info(logger, "Precision: $tol")
info(logger, "Upper bound: $upper_bound")

View File

@ -83,7 +83,6 @@ function solve_SDP(SDP_problem, solver)
ccall((:printf, "libc"), Int, (Ptr{UInt8},), "\n");
o = redirect_stdout(solver_logger.handlers["solver_log"].io)
# e = redirect_stderr(solver_logger.handlers["solver_log"].io)
t = @timed solution_status = JuMP.solve(SDP_problem)
info(logger, timed_msg(t))