forked-synapse/synapse/federation
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
..
sender Add typing to synapse.federation.sender (#6871) 2020-02-07 13:56:38 +00:00
transport Remove unused federation endpoint (query_auth) (#7026) 2020-03-17 08:04:49 -04:00
__init__.py Remove unused ReplicationLayer 2018-03-13 11:00:04 +00:00
federation_base.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
federation_client.py Fix a bug in the federation API which could cause occasional "Failed to get PDU" errors (#7089). 2020-03-19 08:22:56 -04:00
federation_server.py Fix a bug in the federation API which could cause occasional "Failed to get PDU" errors (#7089). 2020-03-19 08:22:56 -04:00
persistence.py Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
send_queue.py Convert *StreamRow classes to inner classes (#7116) 2020-03-23 13:59:11 +00:00
units.py Add typing to synapse.federation.sender (#6871) 2020-02-07 13:56:38 +00:00