summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-03-22 23:18:09 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-03-22 23:18:09 +0000
commit62865b4cded10f513cf288042dde232d20c4f774 (patch)
tree6cebe051e943cd2743d3fe2f42a1636aee20e686 /docs
parent8e7030d2639ee9b0d832fe56dbcdac59e89b679a (diff)
Fixed #15527 -- Added a explanatory note about the SQL debug log. Thanks to boxm for the report, and jpaulett for the draft patch
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15897 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/logging.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt
index 309ea364b4..d5219872ef 100644
--- a/docs/topics/logging.txt
+++ b/docs/topics/logging.txt
@@ -458,6 +458,10 @@ Messages to this logger have the following extra context:
* ``sql``: The SQL statement that was executed.
* ``params``: The parameters that were used in the SQL call.
+For performance reasons, SQL logging is only occurs when
+``settings.DEBUG`` is set to ``True``, regardless of the logging
+level or handlers that are installed.
+
.. note::
Due to a limitation in the logging library, this extra
context is not available if you are using Python 2.4.