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

Configuration of logging prevented through logging.basicConfig(...) #134

Closed
euronion opened this issue Aug 15, 2023 · 0 comments · Fixed by #181
Closed

Configuration of logging prevented through logging.basicConfig(...) #134

euronion opened this issue Aug 15, 2023 · 0 comments · Fixed by #181

Comments

@euronion
Copy link
Contributor

PPM uses logging.basicConfig(...) here:

logging.basicConfig(level=20)

Since basicConfig(...) should only be called by the main thread/application and is idempotent, any script/module importing powerplantmatching cannot use basicConfig(...) to configure its logger, unless the logger configuration is done before importing PPM.

-> this should be removed

lkstrp added a commit to lkstrp/powerplantmatching that referenced this issue Jul 22, 2024
@lkstrp lkstrp closed this as completed in 8885715 Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant