precice / precice/python-bindings
Assertion statements are masked with python logging module is used
Nobody has claimed this yet.
- Dominant language
- Cython
- Stars
- 30
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
When the python logging module is used to generate log output in a code which is using the python-bindings, the assertion statements are not printed as part of the log. Using print() in the code itself leads to the print output being sent to the terminal. This behavior is observed when preCICE is compiled in Debug mode.
When assertion statements are not printed it is hard to debug the code. Is there a way to ensure that the assertion statements from the bindings are printed no matter what logging is used in the code?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the Python logging module while preCICE is compiled in Debug mode, and compare its output with print(). Trace how assertion output from the Python bindings is emitted. Done means binding assertions remain visible regardless of the logging configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100