Skip to content

Move basicConfig into run as main section#27

Merged
Eittipat merged 1 commit into
Eittipat:masterfrom
tjwalton:patch-1
Apr 17, 2025
Merged

Move basicConfig into run as main section#27
Eittipat merged 1 commit into
Eittipat:masterfrom
tjwalton:patch-1

Conversation

@tjwalton
Copy link
Copy Markdown
Contributor

Modules should not run logging.basicConfig() in the root of the module, because this affects any applications that import the module. Move this line under if __name__ == "__main__": so this does not happen any more.

Modules should not run `logging.basicConfig()` in the root of the module, because this affects any applications that import the module. Move this line under `if __name__ == "__main__":` so this does not happen any more.
@Eittipat
Copy link
Copy Markdown
Owner

Eittipat commented Apr 17, 2025

Thank you for the pull request.

@Eittipat Eittipat merged commit ac887e9 into Eittipat:master Apr 17, 2025
3 checks passed
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.

2 participants