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 logger assignment in web core #1573

Merged
merged 1 commit into from
Mar 29, 2024
Merged

fix logger assignment in web core #1573

merged 1 commit into from
Mar 29, 2024

Conversation

dbochkov-flexcompute
Copy link
Contributor

From documentation of logging.basicConfig() it looks like it gets automatically invoked whenever logging is used first time in the code. After that calling logging.basicConfig() will not have effect unless flag force=True is used.

Apparently, in our web.core code we substitute logging with tidy3d's log a bit too late, some of imports already call it. Rearranging order of imports and logger assignment resolves the issue.

Copy link
Contributor

@tomflexcompute tomflexcompute left a comment

Choose a reason for hiding this comment

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

Thanks @dbochkov-flexcompute for the fix!

Copy link
Collaborator

@lucas-flexcompute lucas-flexcompute left a comment

Choose a reason for hiding this comment

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

@momchil-flex momchil-flex merged commit 5da91b9 into pre/2.7 Mar 29, 2024
12 of 13 checks passed
@momchil-flex momchil-flex deleted the daniil/logging-fix branch March 29, 2024 18:07
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.

4 participants