summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCaroline Simpson <github@hoojiboo.com>2014-04-14 17:18:03 -0400
committerTim Graham <timograham@gmail.com>2015-03-27 19:19:48 -0400
commitdc5b01ad05e50ccde688c73c2ed3334a956076b0 (patch)
tree53a0fc9a4be53387f8b625e3b6b8deceb79d22c5 /docs
parent0c91a419f8de791b3051d014db3c946396138969 (diff)
Fixed #18773 -- Added logging for template variable resolving
Added a django.template logger without a default handler. Added logging if there is an exception while resolving variables in a template.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.9.txt3
-rw-r--r--docs/topics/logging.txt10
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index 4c27230d10..16a9e9d5f8 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -188,6 +188,9 @@ Templates
* Added a :meth:`Context.setdefault() <django.template.Context.setdefault>`
method.
+* A warning will now be logged for missing context variables. These messages
+ will be logged to the :ref:`django.template <django-template-logger>` logger.
+
Requests and Responses
^^^^^^^^^^^^^^^^^^^^^^
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt
index 0e167871ab..89de6d56a4 100644
--- a/docs/topics/logging.txt
+++ b/docs/topics/logging.txt
@@ -478,6 +478,16 @@ Messages to this logger have the following extra context:
* ``request``: The request object that generated the logging
message.
+.. _django-template-logger:
+
+``django.template``
+~~~~~~~~~~~~~~~~~~~
+
+.. versionadded:: 1.9
+
+Log messages related to the rendering of templates. Missing context variables
+are logged as ``DEBUG`` messages if :setting:`DEBUG` is `True`.
+
.. _django-db-logger:
``django.db.backends``