Skip to content

Route diagnostics to stderr, with levels #165

Description

@HugoFara

Almost all output goes to stdout with no levels: 299 cout against 28 cerr, mostly in Command.cpp, FireDomain.cpp and DataBroker.cpp.

This causes two problems:

  • A passing unit-test run prints 34 ERROR: vector of parameters … should be valued lines, and none of them is an error. A real error would look identical.
  • Simulation output (FireNode[…] lines) and diagnostics share one stream, so scripts cannot tell them apart.

Suggested fix: a small logging header with levels (error/warning/info/debug) and a runtime threshold, sending errors and warnings to stderr. Then reclassify the call sites, which can be done gradually.

Worth doing before ensembles (#172). Easier after #164 (std::source_location).


Drafted with Claude Opus 5, reviewed by a maintainer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions