  * ``duration``: The time taken to execute the SQL statement.
  * ``sql``: The SQL statement that was executed.
  * ``params``: The parameters that were used in the SQL call.
  
  For performance reasons, SQL logging is only enabled when
  ``settings.DEBUG`` is set to ``True``, regardless of the logging
  level or handlers that are installed.
  
 
</s> remove * ...
 </s> add * The alias of the database used in an SQL call is now passed as extra context
  along with each message to the :ref:`django-db-logger` logger. </s> remove                 extra={'duration': duration, 'sql': sql, 'params': params},
 </s> add                 self.db.alias,
                extra={'duration': duration, 'sql': sql, 'params': params, 'alias': self.db.alias}, </s> remove                 '(%.3f) %s; args=%s',
 </s> add                 '(%.3f) %s; args=%s; alias=%s',
* ``alias``: The alias of the database used in the SQL call.
  * ``duration``: The time taken to execute the SQL statement.
  * ``sql``: The SQL statement that was executed.
  * ``params``: The parameters that were used in the SQL call.
* ``alias``: The alias of the database used in the SQL call.
  
  For performance reasons, SQL logging is only enabled when
  ``settings.DEBUG`` is set to ``True``, regardless of the logging
  level or handlers that are installed.
  
keep keep add keep keep keep keep keep
 Fixed #30934 -- Included database alias in django.db.backends log messages.

This is useful when working with database routing as you want to know
where each query is being executed.

Co-authored-by: David Winterbottom <david.winterbottom@gmail.com> 
docs/ref/logging.txt