precice / precice/python-bindings

Assertion statements are masked with python logging module is used

Aperta
#107 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug
Lingua principale
Cython
Stelle
30
Fork
19
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il problema con il modulo di logging di Python mentre preCICE è compilato in modalità Debug e confronta il suo output con print(). Traccia il modo in cui viene emesso l'output delle asserzioni dei Python bindings. Il lavoro è completato quando le asserzioni dei binding rimangono visibili indipendentemente dalla configurazione del logging.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.