diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-23 11:47:22 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-23 11:48:09 -0400 |
| commit | b1f60460661c8058c511bfb7364dca935c5951ed (patch) | |
| tree | df74144d31f18c28e53c8e7172ab44610d63dfc6 | |
| parent | 6b37719616b77872f9498ca74022563c178031e6 (diff) | |
Refs #25373 -- Doc'd logging of exceptions during {% include %} rendering.
| -rw-r--r-- | docs/topics/logging.txt | 10 |
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: |
