#33981: When a DisallowedHost exception is raised, the log message contains an
exception trace
-------------------------------------+-------------------------------------
Reporter: Andrew Selby | Owner: (none)
Type: Uncategorized | Status: closed
Component: Error reporting | Version: 4.1
Severity: Normal | Resolution: wontfix
Keywords: DisallowedHost | Triage Stage:
HTTP_HOST exception trace | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => wontfix
Comment:
Hi Andrew, thanks. There was a pretty clear consensus on the PR to accept
this change.
> The other logging calls from response_for_exception() include the
exception, it seems to only have been missed here. This allows better
debugging and filtering of errors.
... as such I'm going to close as `wontfix`.
If the traceback bothers you a custom formatter overriding
[https://docs.python.org/3/library/logging.html#logging.Formatter.formatException
formatException] would likely be the way to go.
--
Ticket URL: <https://code.djangoproject.com/ticket/33981#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018311b5d44c-ec59fb98-ddf0-40fd-a596-e93679b0f58c-000000%40eu-central-1.amazonses.com.