0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-17 12:23:53 +01:00
synapse/tests
Richard van der Hoff 39230d2171
Clean up some LoggingContext stuff (#7120)
* Pull Sentinel out of LoggingContext

... and drop a few unnecessary references to it

* Factor out LoggingContext.current_context

move `current_context` and `set_context` out to top-level functions.

Mostly this means that I can more easily trace what's actually referring to
LoggingContext, but I think it's generally neater.

* move copy-to-parent into `stop`

this really just makes `start` and `stop` more symetric. It also means that it
behaves correctly if you manually `set_log_context` rather than using the
context manager.

* Replace `LoggingContext.alive` with `finished`

Turn `alive` into `finished` and make it a bit better defined.
2020-03-24 14:45:33 +00:00
..
api Add a make_event_from_dict method (#6858) 2020-02-07 15:30:04 +00:00
app set worker_app for frontend proxy test (#7003) 2020-02-27 13:08:43 +00:00
appservice
config Improve database configuration docs (#6988) 2020-03-20 15:24:22 +00:00
crypto Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
events Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
federation Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
handlers Revert "Add options to disable setting profile info for prevent changes. (#7053)" 2020-03-17 11:25:01 +00:00
http Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
logging
push Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
replication Convert *StreamRow classes to inner classes (#7116) 2020-03-23 13:59:11 +00:00
rest Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
scripts
server_notices
state Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
storage Change device list streams to have one row per ID (#7010) 2020-03-19 11:36:53 +00:00
test_utils
util Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
__init__.py
server.py
test_distributor.py
test_event_auth.py Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
test_federation.py Add a make_event_from_dict method (#6858) 2020-02-07 15:30:04 +00:00
test_mau.py
test_metrics.py
test_phone_home.py
test_preview.py
test_server.py
test_state.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
test_terms_auth.py
test_test_utils.py
test_types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
test_visibility.py
unittest.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
utils.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00