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

basicConfig is called at the module level #2664

Closed
elshize opened this issue May 11, 2022 · 3 comments · Fixed by #2676
Closed

basicConfig is called at the module level #2664

elshize opened this issue May 11, 2022 · 3 comments · Fixed by #2676
Assignees

Comments

@elshize
Copy link

elshize commented May 11, 2022

Expected Behavior

import feast
logging.basicConfig(level=level, format=FORMAT)
logging.error("msg")

should print logging message according to FORMAT

Current Behavior

It uses the format defined in feast at the module level.

Steps to reproduce

Same as in "Expected Behavior"

Specifications

  • Version: 0.18.1
  • Platform: Linux
  • Subsystem: -

Possible Solution

I see that basicConfig is called here:

logging.basicConfig(
so it is possible that simply removing this call here is enough:
logging.basicConfig(

If there are any other entry points that need to set up logging, they should call the function, but the call in __init__.py must be removed.

@achals
Copy link
Member

achals commented May 12, 2022

I think you're right @elshize - good catch. Would you be willing to submit a PR for this? :)

@achals achals added the good first issue Good for newcomers label May 12, 2022
@achals
Copy link
Member

achals commented May 12, 2022

Actually I'm going to quickly fix this so that we can include the fix in the release we're planning on cutting tomorrow.

@elshize
Copy link
Author

elshize commented May 12, 2022

@achals Thanks. Sorry I didn't reply sooner, it was nighttime here :)

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.

2 participants