From b1f60460661c8058c511bfb7364dca935c5951ed Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 23 Sep 2015 11:47:22 -0400 Subject: [PATCH] Refs #25373 -- Doc'd logging of exceptions during {% include %} rendering. --- docs/topics/logging.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt index 83283b709d9..3a8b80a0a51 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 %} ` 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: