summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2016-03-14 21:38:38 +1100
committerMarkus Holtermann <info@markusholtermann.eu>2016-03-15 17:45:58 +1100
commit1cb65b8a77bd1b15f094b5857468c107784aad90 (patch)
treed186b0a770f0c703b622fce978d16e172416b21c /docs
parentd0fe6c915665fa3220e84bd691ba7002a357e5c5 (diff)
Fixed #26157 #25321 -- Added sql/params to extra context of schema logger
Thanks Akshesh Doshi for the initial patch and Tim Graham for the review
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/logging.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt
index 9cb1da45b4..554acf2514 100644
--- a/docs/topics/logging.txt
+++ b/docs/topics/logging.txt
@@ -583,6 +583,13 @@ specific logger following this example:
Logs the SQL queries that are executed during schema changes to the database by
the :doc:`migrations framework </topics/migrations>`. Note that it won't log the
queries executed by :class:`~django.db.migrations.operations.RunPython`.
+Messages to this logger have ``params`` and ``sql`` in their extra context (but
+unlike ``django.db.backends``, not duration). The values have the same meaning
+as explained in :ref:`django-db-logger`.
+
+.. versionadded:: 1.10
+
+ The ``extra`` context was added.
Handlers
--------