Open jorgensd opened 3 weeks ago
As we have logging.captureWarnings(capture=True) in FFCx init, all warnings (even from other programs) are swallowed. MWE:
logging.captureWarnings(capture=True)
import warnings warnings.warn("test1", RuntimeWarning) import ffcx warnings.warn("test2", RuntimeWarning)
returns
/root/shared/debug/import_ffcx.py:2: RuntimeWarning: test1 warnings.warn("test1", RuntimeWarning)
This means that Deprecation warnings and other warnings added to DOLFINx will never appear, except in the FFCx logger (which is unintuitive).
As we have
logging.captureWarnings(capture=True)
in FFCx init, all warnings (even from other programs) are swallowed. MWE:returns
This means that Deprecation warnings and other warnings added to DOLFINx will never appear, except in the FFCx logger (which is unintuitive).