synapse/tests/util
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
..
caches Always use the name as the log ID. (#9829) 2021-04-20 14:19:00 +01:00
__init__.py Fix flake8 warnings for tests 2016-02-19 15:34:38 +00:00
test_async_utils.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
test_dict_cache.py Add type hints to DictionaryCache and TTLCache. (#9442) 2021-03-29 12:15:33 -04:00
test_expiring_cache.py Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
test_file_consumer.py Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00
test_itertools.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_linearizer.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
test_logcontext.py Record more information into structured logs. (#9654) 2021-04-08 08:01:14 -04:00
test_logformatter.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
test_lrucache.py Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00
test_ratelimitutils.py Bugbear: Add Mutable Parameter fixes (#9682) 2021-04-08 22:38:54 +01:00
test_retryutils.py Reduce run-times of tests by advancing the reactor less (#7757) 2020-08-27 11:39:53 +01:00
test_rwlock.py Convert ReadWriteLock to async/await. (#8202) 2020-08-28 16:47:11 -04:00
test_stream_change_cache.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_stringutils.py Remove : from allowed client_secret chars (#8101) 2020-08-18 14:14:27 +01:00
test_threepids.py Fix inconsistent handling of upper and lower cases of email addresses. (#7021) 2020-07-03 14:03:13 +01:00
test_treecache.py run isort 2018-07-09 16:09:20 +10:00
test_wheel_timer.py run isort 2018-07-09 16:09:20 +10:00