propulate icon indicating copy to clipboard operation
propulate copied to clipboard

Duplicate logging output during MPI testing.

Open oskar-taubert opened this issue 1 year ago • 1 comments

During testing output from the logger is printed multiple times. The number of prints depends on the number of tests already run. This is fixed in the sequential tests in #maintenance/checkpointing. The logger is probably created multiple times somewhere. If possible we should catch and fix this centrally.

oskar-taubert avatar May 12 '24 22:05 oskar-taubert

Solution is to call set_logger_config() at the beginning of each test and log.handlers.clear() at the end of each test. log is log = logging.getLogger("propulate") at the beginning of the test module.

oskar-taubert avatar Aug 15 '24 09:08 oskar-taubert