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

fix: logging so that it doesn't affect the root logger #154

Merged
merged 3 commits into from
Dec 29, 2022
Merged

Conversation

aryarm
Copy link
Member

@aryarm aryarm commented Dec 29, 2022

After reading this article, I realized that I wasn't creating my logger objects properly. The way that I was doing it would affect the root logger object and, subsequently, any loggers in other python libraries that inherit from the root logger.

This PR creates a new custom logging module within haptools. We reduce boilerplate by just using the custom logging module to get our logger objects from now on. I also documented all of this in our contributing docs.

@aryarm aryarm merged commit c1dc1ef into main Dec 29, 2022
@aryarm aryarm deleted the fix/logging branch December 29, 2022 17:59
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 this pull request may close these issues.

1 participant