forked-synapse/synapse/http
Richard van der Hoff eaaa2248ff Refactor request logging code
This commit moves a bunch of the logic for deciding when to log the receipt and
completion of HTTP requests into SynapseRequest, rather than in the request
handling wrappers.

Advantages of this are:
 * we get logs for *all* requests (including OPTIONS and HEADs), rather than
   just those that end up hitting handlers we've remembered to decorate
   correctly.

 * when a request handler wires up a Producer (as the media stuff does
   currently, and as other things will do soon), we log at the point that all
   of the traffic has been sent to the client.
2018-08-15 13:47:52 +01:00
..
__init__.py factor out uri redaction into a method on http 2018-06-05 18:31:40 +01:00
additional_resource.py run isort 2018-07-09 16:09:20 +10:00
client.py Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
endpoint.py Merge remote-tracking branch 'upstream/develop' into send_sni_for_federation_requests 2018-07-14 20:24:46 +02:00
matrixfederationclient.py Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
request_metrics.py pep8 2018-07-18 14:19:00 +01:00
server.py Refactor request logging code 2018-08-15 13:47:52 +01:00
servlet.py Python 3: Convert some unicode/bytes uses (#3569) 2018-08-02 00:54:06 +10:00
site.py Refactor request logging code 2018-08-15 13:47:52 +01:00