Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #21484 -- Documented that SQL logging does not include "framewo…

…rk level" queries.
  • Loading branch information...
commit 4d8d76e7a89858932b6f4f280a0ebf4cf94ab4b7 1 parent b8e3373
@timgraham timgraham authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 docs/topics/logging.txt
View
11 docs/topics/logging.txt
@@ -441,9 +441,9 @@ Messages to this logger have the following extra context:
``django.db.backends``
~~~~~~~~~~~~~~~~~~~~~~
-Messages relating to the interaction of code with the database.
-For example, every SQL statement executed by a request is logged
-at the ``DEBUG`` level to this logger.
+Messages relating to the interaction of code with the database. For example,
+every application-level SQL statement executed by a request is logged at the
+``DEBUG`` level to this logger.
Messages to this logger have the following extra context:
@@ -455,6 +455,11 @@ For performance reasons, SQL logging is only enabled when
``settings.DEBUG`` is set to ``True``, regardless of the logging
level or handlers that are installed.
+This logging does not include framework-level initialization (e.g.
+``SET TIMEZONE``) or transaction management queries (e.g. ``BEGIN``,
+``COMMIT``, and ``ROLLBACK``). Turn on query logging in your database if you
+wish the view all database queries.
+
``django.security.*``
~~~~~~~~~~~~~~~~~~~~~~
Please sign in to comment.
Something went wrong with that request. Please try again.