synapse/synapse
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
..
api Revert "support admin_email config and pass through into blocking errors, return AuthError in all cases" 2018-08-13 18:06:18 +01:00
app Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
appservice run isort 2018-07-09 16:09:20 +10:00
config Revert "support admin_email config and pass through into blocking errors, return AuthError in all cases" 2018-08-13 18:06:18 +01:00
crypto more generic conversion of str/bytes to unicode 2018-08-09 21:31:26 +02:00
events Handle delta_ids being None in _update_context_for_auth_events 2018-07-23 22:06:50 +01:00
federation Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
groups Fix some looping_call calls which were broken in #3604 2018-07-26 11:48:08 +01:00
handlers Revert "support admin_email config and pass through into blocking errors, return AuthError in all cases" 2018-08-13 18:06:18 +01:00
http Refactor request logging code 2018-08-15 13:47:52 +01:00
metrics fix metric name 2018-08-07 22:11:45 +01:00
module_api
push Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
replication Merge pull request #3632 from matrix-org/erikj/refactor_repl_servlet 2018-08-09 10:06:23 +01:00
rest Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
server_notices run isort 2018-07-09 16:09:20 +10:00
static/client Use recaptcha_ajax.js directly from Google 2018-08-10 13:36:14 +02:00
storage Merge remote-tracking branch 'origin/develop' into neilj/fix_reap_users_in_postgres 2018-08-14 20:56:23 +10:00
streams Fix develop because I broke it :( (#3535) 2018-07-14 09:51:00 +10:00
util Merge branch 'rav/fix_linearizer_cancellation' into develop 2018-08-10 14:57:27 +01:00
__init__.py 0.33.2 2018-08-09 19:20:41 +10:00
event_auth.py Check m.room.create for sane room_versions 2018-08-06 16:11:24 +01:00
notifier.py Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
python_dependencies.py Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
secrets.py Only import secrets when available 2018-07-30 23:59:02 +02:00
server.py Merge branch 'develop' of github.com:matrix-org/synapse into erikj/client_apis_move 2018-07-23 13:21:15 +01:00
server.pyi Send users a server notice about consent 2018-05-22 11:54:51 +01:00
state.py Rename async to async_helpers because async is a keyword on Python 3.7 (#3678) 2018-08-10 23:50:21 +10:00
types.py Python 3: Convert some unicode/bytes uses (#3569) 2018-08-02 00:54:06 +10:00
visibility.py Merge remote-tracking branch 'origin/develop' into rav/remove_who_forgot_in_room 2018-07-23 17:15:12 +01:00