Fixed #26688 -- Fixed HTTP request logging inconsistencies.

* Added logging of 500 responses for instantiated responses.
* Added logging of all 4xx and 5xx responses.
This commit is contained in:
Samir Shah 2017-07-13 07:09:18 +03:00 committed by Tim Graham
parent 2e1f674897
commit 10b44e4525
10 changed files with 226 additions and 57 deletions

View file

@ -468,7 +468,8 @@ posted using this name but instead using one of the loggers below.
Log messages related to the handling of requests. 5XX responses are
raised as ``ERROR`` messages; 4XX responses are raised as ``WARNING``
messages.
messages. Requests that are logged to the ``django.security`` logger aren't
logged to ``django.request``.
Messages to this logger have the following extra context: