mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #31090 -- Logged transaction management queries.
Thanks to Petter Strandmark for the original idea and Mariusz Felisiak for advice during the DjangoConUS 2022 Sprint!
This commit is contained in:
parent
c0a93d3941
commit
798e38c2b9
7 changed files with 109 additions and 12 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue