python-bindings icon indicating copy to clipboard operation
python-bindings copied to clipboard

Assertion statements are masked with python logging module is used

Open IshaanDesai opened this issue 3 years ago • 0 comments

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?

IshaanDesai avatar May 30 '21 06:05 IshaanDesai