Skip to content

Adding child logger before initial parent results in unexpected level #44

@electrofelix

Description

@electrofelix

Defining a child logger before the initial parent will result in the child logger receiving a level of 0 instead of the default from the parent.

This means that developers need to be very careful about the load order of modules and classes or alternatively should provide a mechanism to easily reset child logger levels on defining of a parent logger.

At the very least, I'd suggest documenting the current behaviour more clearly to warn developers that order is important.

See vagrant-libvirt/vagrant-libvirt#430

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions