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

Move ga4gh imports to their functions #626

Merged
merged 7 commits into from
Oct 16, 2023
Merged

Conversation

mike-w-wilson
Copy link
Contributor

The VRS module is breaking our loggers. To keep our versions pinned to 0.8.4 and get logging working, we need to move the imports into the functions that use them. This means loggers will only break when using these functions.

I think what is happening is their init calls logging.BasicConfig without setting a level which will reset the logging level to warning: https://github.com/ga4gh/vrs-python/blob/593508c6e8229336ca1f53a06f69966020cd68f7/src/ga4gh/vrs/__init__.py

I tested this locally and my logging was restored.

It does look like they removed the logging call in later version so another option is to unpin or use another version of vrs in our requirements file.

Copy link
Contributor

@jkgoodrich jkgoodrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me, can you just add a comment for why they are not at the top

@mike-w-wilson mike-w-wilson merged commit c896d1a into main Oct 16, 2023
3 checks passed
@mike-w-wilson mike-w-wilson deleted the mw/fix_logger_issue branch October 16, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants