summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIlya Bass <ilya.bass@pathai.com>2022-10-20 15:14:35 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-11-21 09:10:14 +0100
commit798e38c2b9c46ab72e2ee8c33dc822f01b194b1e (patch)
tree32e558e0f86e04f9198646bffa11c08198dfe43c /docs
parentc0a93d39411004300dfda2deb3dc093b69ac6368 (diff)
Fixed #31090 -- Logged transaction management queries.
Thanks to Petter Strandmark for the original idea and Mariusz Felisiak for advice during the DjangoConUS 2022 Sprint!
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/logging.txt10
-rw-r--r--docs/releases/4.2.txt3
2 files changed, 9 insertions, 4 deletions
diff --git a/docs/ref/logging.txt b/docs/ref/logging.txt
index ba443a0a36..edd9f21ecb 100644
--- a/docs/ref/logging.txt
+++ b/docs/ref/logging.txt
@@ -196,9 +196,13 @@ For performance reasons, SQL logging is only enabled when
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 to view all database queries.
+``SET TIMEZONE``). Turn on query logging in your database if you wish to view
+all database queries.
+
+.. versionchanged:: 4.2
+
+ Support for logging transaction management queries (``BEGIN``, ``COMMIT``,
+ and ``ROLLBACK``) was added.
.. _django-security-logger:
diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt
index 8ab9242f97..e7d2882edb 100644
--- a/docs/releases/4.2.txt
+++ b/docs/releases/4.2.txt
@@ -199,7 +199,8 @@ Internationalization
Logging
~~~~~~~
-* ...
+* The :ref:`django-db-logger` logger now logs transaction management queries
+ (``BEGIN``, ``COMMIT``, and ``ROLLBACK``) at the ``DEBUG`` level.
Management Commands
~~~~~~~~~~~~~~~~~~~