While the backends looger puts the query `duration`, `sql` and `params`
into the log record, the schema logger only passes the arguments for
string formatting.
--
Ticket URL: <https://code.djangoproject.com/ticket/26157>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* component: Utilities => Migrations
* stage: Unreviewed => Accepted
Comment:
See also #25321 which suggests to document that the schema logger doesn't
include duration. Initially I thought you were proposing to add it, but I
think you just want to pass `sql` and `params` in the `logger.debug()`
`extra` kwarg. Is that all?
--
Ticket URL: <https://code.djangoproject.com/ticket/26157#comment:1>
* owner: nobody => akki
* status: new => assigned
* has_patch: 0 => 1
Comment:
PR: https://github.com/django/django/pull/6256
--
Ticket URL: <https://code.djangoproject.com/ticket/26157#comment:2>
* needs_docs: 0 => 1
* needs_tests: 0 => 1
Comment:
Release notes and tests are missing.
--
Ticket URL: <https://code.djangoproject.com/ticket/26157#comment:3>
* owner: akki => MarkusH
* needs_docs: 1 => 0
* needs_tests: 1 => 0
Comment:
PR updated: https://github.com/django/django/pull/6289
Replying to [comment:3 timgraham]:
> Release notes and tests are missing.
I don't think this change is worth a mention in the release notes, tbh.
--
Ticket URL: <https://code.djangoproject.com/ticket/26157#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26157#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"1cb65b8a77bd1b15f094b5857468c107784aad90" 1cb65b8a]:
{{{
#!CommitTicketReference repository=""
revision="1cb65b8a77bd1b15f094b5857468c107784aad90"
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
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26157#comment:6>