forked-synapse/synapse/http
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
..
federation Share SSL contexts for non-federation requests (#7094) 2020-03-17 21:32:25 +00:00
__init__.py Replace client_secret with <redacted> in server logs (#6158) 2019-10-03 12:57:26 +01:00
additional_resource.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
client.py Share SSL contexts for non-federation requests (#7094) 2020-03-17 21:32:25 +00:00
connectproxyclient.py Support for routing outbound HTTP requests via a proxy (#6239) 2019-11-01 14:07:44 +00:00
endpoint.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
matrixfederationclient.py Fix outbound federation request metrics (#6795) 2020-01-28 18:59:48 +00:00
proxyagent.py Support for routing outbound HTTP requests via a proxy (#6239) 2019-11-01 14:07:44 +00:00
request_metrics.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
server.py Tiny optimisation for _get_handler_for_request (#6950) 2020-02-19 10:38:20 +00:00
servlet.py Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
site.py Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00