mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	[1.7.x] Fixed #23278 -- Documented django.db.backends.schema logger
Backport of ef90d395ab from master
			
			
This commit is contained in:
		| @@ -413,7 +413,7 @@ requirements of logging in Web server environment. | |||||||
| Loggers | Loggers | ||||||
| ------- | ------- | ||||||
|  |  | ||||||
| Django provides four built-in loggers. | Django provides several built-in loggers. | ||||||
|  |  | ||||||
| ``django`` | ``django`` | ||||||
| ~~~~~~~~~~ | ~~~~~~~~~~ | ||||||
| @@ -489,6 +489,15 @@ specific logger following this example:: | |||||||
|                 'propagate': False, |                 '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 | Handlers | ||||||
| -------- | -------- | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user