Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #15527 -- Added a explanatory note about the SQL debug log. Tha…

…nks to boxm for the report, and jpaulett for the draft patch

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 62865b4cded10f513cf288042dde232d20c4f774 1 parent 8e7030d
@freakboy3742 freakboy3742 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/topics/logging.txt
4 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.

0 comments on commit 62865b4

Please sign in to comment.
Something went wrong with that request. Please try again.