-
Notifications
You must be signed in to change notification settings - Fork 31
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
Improve logging #1907
Improve logging #1907
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #1907 +/- ##
===========================================
+ Coverage 75.76% 75.92% +0.15%
===========================================
Files 75 76 +1
Lines 12913 12928 +15
===========================================
+ Hits 9784 9815 +31
+ Misses 3129 3113 -16
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic, thanks! Not 100% sure about the severity levels, probably makes sense to double check that on some examples
Co-authored-by: Fabian Fröhlich <[email protected]>
SonarCloud Quality Gate failed. |
Make it easier for users to filter log messages.
breaking changes:
For Python:
Don't print messages to stdout, but collect them in
ReturnData
and forward them to python logging, making it easier to filter specific messages or to disable output completely.For C++:
Don't print messages to stdout, but collect them in
ReturnData
, and let the user decide what to do with it.This implies, that messages will no longer be shown as they occur, but only after
runAmiciSimulation
finishes. Downside: no live output. Upside: We can prefix messages with simulation condition IDs, making it easier to see which where any errors occurred. This is particularly helpful forrunAmiciSimulation
with multiple conditions.Also resolves #1550.
Note: This should also allow us to stop using
wurlitzer
and should resolve any weird output redirection issues that occurred previously. To be done separately.