Skip to content

Commit 0739151

Browse files
committed
changed: better formatting for debug log
The full output without ellipsis can still be shown in the REPL with the following logger: `debuglogger = ConsoleLogger(stderr, Logging.Debug, show_limited=false)`
1 parent d0ae483 commit 0739151

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controller/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ function optim_objective!(mpc::PredictiveController{NT}) where {NT<:Real}
525525
@warn("MPC termination status not OPTIMAL or LOCALLY_SOLVED: keeping "*
526526
"solution anyway", status)
527527
end
528-
@debug getinfo(mpc)
528+
@debug("The function getinfo returns: ", getinfo(mpc))
529529
end
530530
if iserror(optim)
531531
mpc.ΔŨ .= ΔŨ0

src/estimator/mhe/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function optim_objective!(estim::MovingHorizonEstimator{NT}) where NT<:Real
412412
@warn("MHE termination status not OPTIMAL or LOCALLY_SOLVED: keeping "*
413413
"solution anyway", status)
414414
end
415-
@debug getinfo(estim)
415+
@debug("The function getinfo returns: ", getinfo(estim))
416416
end
417417
if iserror(optim)
418418
estim.Z̃ .= Z̃_0

0 commit comments

Comments
 (0)