Skip to content

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

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

Closed
blueyed opened this issue Apr 2, 2014 · 5 comments
Closed

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

blueyed opened this issue Apr 2, 2014 · 5 comments
Labels

Comments

@blueyed
Copy link
Contributor

blueyed commented Apr 2, 2014

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.

@aaugustin aaugustin added the Bug label Apr 3, 2014
@aaugustin
Copy link
Contributor

I don't know why it's implemented like this. See also #563.

@semekh
Copy link

semekh commented Sep 11, 2014

+1

blueyed added a commit to blueyed/django-debug-toolbar that referenced this issue Jan 29, 2015
blueyed added a commit to blueyed/django-debug-toolbar that referenced this issue Jan 29, 2015
@zopieux
Copy link

zopieux commented Feb 5, 2015

Please see PR #683 and PR #563 for two different (and conflicting) implementations.

@tim-schilling
Copy link
Member

While they are conflicting, I don't think they are two different implementations of the same thing. #563 exists to prevent memory leaks when running with DEBUG=False.

@zopieux
Copy link

zopieux commented Feb 6, 2015

Indeed @tim-schilling they do not solve the same issue, so they should be merged somehow. I was just pointing out it was not that simple. 😃

ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this issue Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants