Skip to content

basicConfig is called at the module level #2664

Closed

Description

@elshize

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.

Activity

  1. achals commented on May 12, 2022

    @achals
    Member

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

  2. achals commented on May 12, 2022

    @achals
    Member

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

  3. self-assigned this
    on May 12, 2022
  4. elshize commented on May 12, 2022

    @elshize
    Author

    @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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions