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

Call logging.basicConfig only within main #6

Merged
merged 1 commit into from
Mar 21, 2019

Conversation

rohanpm
Copy link
Member

@rohanpm rohanpm commented Mar 21, 2019

Merely importing a module shouldn't have the side-effect of changing
the global logging config, which can only be done once per process.
It's fragile and could lead to confusing behavior where log format
differs depending on the order of imports.

Since this is only intended to enable output for the CLI, let's
move it within the CLI's main method.

Merely importing a module shouldn't have the side-effect of changing
the global logging config, which can only be done once per process.
It's fragile and could lead to confusing behavior where log format
differs depending on the order of imports.

Since this is only intended to enable output for the CLI, let's
move it within the CLI's main method.
@rohanpm rohanpm requested a review from a team March 21, 2019 00:34
@rbikar rbikar merged commit 43b75a6 into release-engineering:master Mar 21, 2019
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.

None yet

3 participants