Skip to content

django-debug-toolbar should not (un)set root logger level #572

Closed
@blueyed

Description

@blueyed

I had a hard time figuring out why the root logger level (logging.root.level) was being reset to 0 (NOTSET).

This gets done by DDT:

logging.root.setLevel(logging.NOTSET)

https://github.com/django-debug-toolbar/django-debug-toolbar/blob/master/debug_toolbar/panels/logging.py#L53

I think that DDT should not change this setting, but only add its handler.
There might be a configuration option for this, but then you could also just configure your root handler accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions