summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-09-23 11:47:22 -0400
committerTim Graham <timograham@gmail.com>2015-09-23 11:48:09 -0400
commitb1f60460661c8058c511bfb7364dca935c5951ed (patch)
treedf74144d31f18c28e53c8e7172ab44610d63dfc6
parent6b37719616b77872f9498ca74022563c178031e6 (diff)
Refs #25373 -- Doc'd logging of exceptions during {% include %} rendering.
-rw-r--r--docs/topics/logging.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt
index 83283b709d..3a8b80a0a5 100644
--- a/docs/topics/logging.txt
+++ b/docs/topics/logging.txt
@@ -490,8 +490,14 @@ Messages to this logger have the following extra context:
.. versionadded:: 1.9
-Log messages related to the rendering of templates. Missing context variables
-are logged as ``DEBUG`` messages if :setting:`DEBUG` is `True`.
+Log messages related to the rendering of templates.
+
+* 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: