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

Propagate logger #128

Merged
merged 4 commits into from
Nov 17, 2021
Merged

Propagate logger #128

merged 4 commits into from
Nov 17, 2021

Conversation

mj-will
Copy link
Owner

@mj-will mj-will commented Nov 17, 2021

The logger in nessai currently has propagate=False. The standard logging library has this set to True by default and we only use False as a carry-over from the bilby function it's based on. Given that we only ever create a single logger, I don't think we need this to set explicitly and we're better leaving it to the default value.

This also makes it easier to check the logging output in the unit tests using pytest's caplog .

From some quick tests this doesn't seem to change any with the logging in either standard nessai or bilby + nessai.

@mj-will mj-will added the enhancement New feature or request label Nov 17, 2021
@mj-will mj-will added this to the v0.4.0 milestone Nov 17, 2021
@mj-will mj-will merged commit 81e810b into main Nov 17, 2021
@mj-will mj-will deleted the propagate-logger branch November 17, 2021 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant