python-bindings
python-bindings copied to clipboard
Assertion statements are masked with python logging module is used
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?