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

Importing prefixmaps causes undesired change to root logging level #58

Closed
pkalita-lbl opened this issue Dec 18, 2023 · 0 comments · Fixed by #59
Closed

Importing prefixmaps causes undesired change to root logging level #58

pkalita-lbl opened this issue Dec 18, 2023 · 0 comments · Fixed by #59

Comments

@pkalita-lbl
Copy link
Contributor

When I run this script which does not use prefixmaps, I don't get any logging. That is what I would expect because the default root logging level in Python is WARNING.

"""main.py"""
import logging

uri = "http://purl.obolibrary.org/obo/CHEBI_1"
logging.info(uri)

However when I refactor my code to use prefixmaps all of a sudden I'm seeing INFO-level logging that I wouldn't expect to see.

"""main.py"""
import logging

from prefixmaps import load_converter

converter = load_converter(["obo", "bioregistry.upper", "linked_data", "prefixcc"])
uri = converter.expand("CHEBI:1")
logging.info(uri)
$ python main.py
INFO:root:http://purl.obolibrary.org/obo/CHEBI_1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant