Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #23278 -- Documented django.db.backends.schema logger

  • Loading branch information...
commit ef90d395abfc4a9b0338146cf456f68d4f0557c7 1 parent 2724cdb
@areski areski authored timgraham committed
Showing with 10 additions and 1 deletion.
  1. +10 −1 docs/topics/logging.txt
View
11 docs/topics/logging.txt
@@ -413,7 +413,7 @@ requirements of logging in Web server environment.
Loggers
-------
-Django provides four built-in loggers.
+Django provides several built-in loggers.
``django``
~~~~~~~~~~
@@ -489,6 +489,15 @@ specific logger following this example::
'propagate': False,
},
+``django.db.backends.schema``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. versionadded:: 1.7
+
+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`.
+
Handlers
--------
Please sign in to comment.
Something went wrong with that request. Please try again.