Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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: http://code.djangoproject.com/svn/django/trunk@15897 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 62865b4cded10f513cf288042dde232d20c4f774 1 parent 8e7030d
Russell Keith-Magee authored March 22, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  docs/topics/logging.txt
4  docs/topics/logging.txt
@@ -458,6 +458,10 @@ Messages to this logger have the following extra context:
458 458
     * ``sql``: The SQL statement that was executed.
459 459
     * ``params``: The parameters that were used in the SQL call.
460 460
 
  461
+For performance reasons, SQL logging is only occurs when
  462
+``settings.DEBUG`` is set to ``True``, regardless of the logging
  463
+level or handlers that are installed.
  464
+
461 465
 .. note::
462 466
     Due to a limitation in the logging library, this extra
463 467
     context is not available if you are using Python 2.4.

0 notes on commit 62865b4

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