Skip to content

Redirect Julia warnings to log files#21

Merged
AnHeuermann merged 1 commit intomainfrom
log-warnings
Mar 13, 2026
Merged

Redirect Julia warnings to log files#21
AnHeuermann merged 1 commit intomainfrom
log-warnings

Conversation

@AnHeuermann
Copy link
Member

Changes

Suppress library warnings on stdout; redirect them to per-phase log files

Wrap the BaseModelica.create_odeproblem and DifferentialEquations.solve calls with Logging.with_logger(SimpleLogger(log_file)) so that warnings from Symbolics, MTK, and the solver (e.g. "Did not converge after maxiters substitutions") are captured in the existing _parsing.log / _sim.log files instead of cluttering stdout.

…iles

Wrap the BaseModelica.create_odeproblem and DifferentialEquations.solve
calls with Logging.with_logger(SimpleLogger(log_file)) so that warnings
from Symbolics, MTK, and the solver (e.g. "Did not converge after
maxiters substitutions") are captured in the existing _parsing.log /
_sim.log files instead of cluttering stdout.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AnHeuermann AnHeuermann self-assigned this Mar 13, 2026
@AnHeuermann AnHeuermann enabled auto-merge (squash) March 13, 2026 12:58
@AnHeuermann AnHeuermann merged commit 28eb81b into main Mar 13, 2026
4 checks passed
@AnHeuermann AnHeuermann deleted the log-warnings branch March 13, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant