Skip to content

Module-level loggers with explicit setLevel(DEBUG) ignore root logger configuration #65

@zhanqian-zhang

Description

@zhanqian-zhang

When a module-level logger explicitly sets its level to DEBUG using setLevel(logging.DEBUG), it ignores the root logger's level configuration.

This results in DEBUG messages always being processed and logged, even when the root logger is set to a higher level (e.g., WARNING or INFO).

Suggest Solution: remove both 'basicConfig' and 'setLevel'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions