Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate logging output during MPI testing. #127

Open
oskar-taubert opened this issue May 12, 2024 · 1 comment
Open

Duplicate logging output during MPI testing. #127

oskar-taubert opened this issue May 12, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@oskar-taubert
Copy link
Member

oskar-taubert commented May 12, 2024

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 oskar-taubert added the bug Something isn't working label May 12, 2024
@mcw92 mcw92 linked a pull request Aug 15, 2024 that will close this issue
@mcw92 mcw92 added this to the Checkpointing milestone Aug 15, 2024
@oskar-taubert
Copy link
Member Author

oskar-taubert commented Aug 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants