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

[SCHEMA] Configure only the bst logger instead of the root logger #1996

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

fraimondo
Copy link
Contributor

This PR addresses an issue in which third-party projects using the bidsschematools python package might have logging issues.

Currently, the bidsschematools package is reconfiguring the python root logger in order to set the format, which also adds a handler to the root logger. This affects pybids, which also affects templateflow and, in consecuence, any other tool using templateflow.

This PR should not create any imcompatibility as it is just a logging reconfiguration and does not modify the schema nor the logic of the code handling the schema.

@effigies effigies merged commit 379f682 into bids-standard:master Dec 5, 2024
24 of 25 checks passed
effigies pushed a commit that referenced this pull request Dec 5, 2024
)

* Configure only the bst logger instead of the root logger

* Add a logging handler if there are none

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix flake8
@effigies effigies added schema-code Updates or changes to the code used to parse, filter, and render the schema. exclude-from-changelog This item will not feature in the automatically generated changelog labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-from-changelog This item will not feature in the automatically generated changelog schema-code Updates or changes to the code used to parse, filter, and render the schema.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants