Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aligh log messages #126

Open
vasylskorych opened this issue May 11, 2023 · 0 comments
Open

Aligh log messages #126

vasylskorych opened this issue May 11, 2023 · 0 comments
Labels
ui Checnges in user interface

Comments

@vasylskorych
Copy link
Member

If call ShowInfo and RaiseWarning e.g. in ResultsHandler for several time points, their log will be shown grouped by type, rather then successively. E.g.
void CUnitDAEModel::ResultsHandler(double _time, double* _vars, double* _ders, void* _unit)
{
unit->ShowInfo("Info" + to_string(_time) + "s...");
unit->RaiseWarning("Warning" + to_string(_time) + "s...");
}
will produce something like

Info 0s...
Info 1s...
Info 2s...
Info 3s...
Warning 0s...
Warning 1s...
Warning 2s...
Warning 3s...

instead of

Info 0s...
Warning 0s...
Info 1s...
Warning 1s...
Info 2s...
Warning 2s...
Info 3s...
Warning 3s...

@vasylskorych vasylskorych added the ui Checnges in user interface label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Checnges in user interface
Projects
None yet
Development

No branches or pull requests

1 participant