From 1cb65b8a77bd1b15f094b5857468c107784aad90 Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Mon, 14 Mar 2016 21:38:38 +1100 Subject: 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 --- docs/topics/logging.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') 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 `. 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 -------- -- cgit v1.3