summary refs log tree commit diff
path: root/demo
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-08-15 08:49:59 +0100
committerRichard van der Hoff <richard@matrix.org>2018-08-15 13:47:52 +0100
commiteaaa2248ffdda0c913a915a5c5f3e7ea5e2aa8c4 (patch)
tree84ee568802523cd63ad00b0208508e886fc2cf94 /demo
parentDockerised sytest (#3660) (diff)
downloadsynapse-eaaa2248ffdda0c913a915a5c5f3e7ea5e2aa8c4.tar.xz
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.
Diffstat (limited to 'demo')
0 files changed, 0 insertions, 0 deletions