mirror of
https://github.com/django/django.git
synced 2025-06-02 18:19:11 +00:00
Refs #25373 -- Doc'd logging of exceptions during {% include %} rendering.
This commit is contained in:
parent
6b37719616
commit
b1f6046066
@ -490,8 +490,14 @@ Messages to this logger have the following extra context:
|
|||||||
|
|
||||||
.. versionadded:: 1.9
|
.. versionadded:: 1.9
|
||||||
|
|
||||||
Log messages related to the rendering of templates. Missing context variables
|
Log messages related to the rendering of templates.
|
||||||
are logged as ``DEBUG`` messages if :setting:`DEBUG` is `True`.
|
|
||||||
|
* Missing context variables are logged as ``DEBUG`` messages.
|
||||||
|
|
||||||
|
* Uncaught exceptions raised during the rendering of an
|
||||||
|
:ttag:`{% include %} <include>` are logged as ``WARNING`` messages when
|
||||||
|
debug mode is off (helpful since ``{% include %}`` silences the exception and
|
||||||
|
returns an empty string in that case).
|
||||||
|
|
||||||
.. _django-db-logger:
|
.. _django-db-logger:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user