synapse-product/synapse
Patrick Cloke b076bc276e
Always use the name as the log ID. (#9829)
As far as I can tell our logging contexts are meant to log the request ID, or sometimes the request ID followed by a suffix (this is generally stored in the name field of LoggingContext). There's also code to log the name@memory location, but I'm not sure this is ever used.

This simplifies the code paths to require every logging context to have a name and use that in logging. For sub-contexts (created via nested_logging_contexts, defer_to_threadpool, Measure) we use the current context's str (which becomes their name or the string "sentinel") and then potentially modify that (e.g. add a suffix).
2021-04-20 14:19:00 +01:00
..
_scripts Strip trailing / from server_url in register_new_matrix_user (#8823) 2020-11-26 10:57:26 +00:00
api Require AppserviceRegistrationType (#9548) 2021-04-12 15:13:55 +01:00
app Add a Synapse Module for configuring presence update routing (#9491) 2021-04-06 14:38:30 +01:00
appservice Bugbear: Add Mutable Parameter fixes (#9682) 2021-04-08 22:38:54 +01:00
config Bump black configuration to target py36 (#9781) 2021-04-13 10:41:34 +01:00
crypto Enable addtional flake8-bugbear linting checks. (#9659) 2021-03-24 09:34:30 -04:00
events Bugbear: Add Mutable Parameter fixes (#9682) 2021-04-08 22:38:54 +01:00
federation Fix duplicate logging of exceptions in transaction processing (#9780) 2021-04-09 18:12:15 +01:00
groups Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
handlers Bump black configuration to target py36 (#9781) 2021-04-13 10:41:34 +01:00
http Bump black configuration to target py36 (#9781) 2021-04-13 10:41:34 +01:00
logging Always use the name as the log ID. (#9829) 2021-04-20 14:19:00 +01:00
metrics Always use the name as the log ID. (#9829) 2021-04-20 14:19:00 +01:00
module_api Bugbear: Add Mutable Parameter fixes (#9682) 2021-04-08 22:38:54 +01:00
push Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
replication Always use the name as the log ID. (#9829) 2021-04-20 14:19:00 +01:00
res/templates Support not providing an IdP icon when choosing a username. (#9440) 2021-02-19 07:48:46 -05:00
rest Add an admin API to manage ratelimit for a specific user (#9648) 2021-04-13 10:26:37 +01:00
server_notices Add a type hints for service notices to the HomeServer object. (#9675) 2021-03-24 06:48:46 -04:00
spam_checker_api Combine SpamCheckerApi with the more generic ModuleApi. (#8464) 2020-10-07 12:03:26 +01:00
state Add type hints to expiring cache. (#9730) 2021-04-06 08:58:18 -04:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Bump black configuration to target py36 (#9781) 2021-04-13 10:41:34 +01:00
streams Make token serializing/deserializing async (#8427) 2020-09-30 20:29:19 +01:00
util Always use the name as the log ID. (#9829) 2021-04-20 14:19:00 +01:00
__init__.py 1.32.0rc1 2021-04-13 14:23:43 +01:00
event_auth.py Add an experimental room version to support restricted join rules. (#9717) 2021-03-31 16:39:08 -04:00
notifier.py Bugbear: Add Mutable Parameter fixes (#9682) 2021-04-08 22:38:54 +01:00
python_dependencies.py Fix the suggested pip incantation for cryptography (#9699) 2021-03-29 11:55:33 +01:00
secrets.py Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00
server.py Add a Synapse Module for configuring presence update routing (#9491) 2021-04-06 14:38:30 +01:00
types.py Convert Requester to attrs (#9586) 2021-03-10 18:15:56 +00:00
visibility.py Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00