#27931: Minimum console logging level for DEBUG=True is too high
-------------------------------+--------------------------------------
Reporter: Jesse | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by Jesse:
Old description:
> [https://docs.djangoproject.com/en/1.10/topics/logging/#django-s-default-
> logging-configuration Django docs] state that, when `DEBUG = True`, all
> log messages INFO or higher should go to the console. However, it appears
> that the level is actually WARN or higher:
>
> {{{
> import logging
> logger = logging.getLogger(__name__)
>
> logger.info("info")
> logger.warning("warning")
> logger.error("error")
> logger.critical("critical")
> }}}
>
> And the output in the console:
> {{{
> warning
> error
> critical
> }}}
New description:
[https://docs.djangoproject.com/en/1.10/topics/logging/#django-s-default-
logging-configuration Django docs] state that, when `DEBUG = True`, all
log messages INFO or higher should go to the console. However, it appears
that the level is actually WARN or higher:
{{{
#!python
import logging
logger = logging.getLogger(__name__)
logger.info("info")
logger.warning("warning")
logger.error("error")
logger.critical("critical")
}}}
And the output in the console:
{{{
warning
error
critical
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/27931#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.e688bc80aadd7386b8e9dce561a54747%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.