anonymousland-synapse/synapse
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
..
_scripts
api Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
app Convert *StreamRow classes to inner classes (#7116) 2020-03-23 13:59:11 +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 Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
groups Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
handlers Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
http Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
logging Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
metrics Add prometheus metrics for the number of active pushers (#7103) 2020-03-19 10:00:24 +00:00
module_api Factor out complete_sso_login and expose it to the Module API 2020-03-03 10:54:44 +00:00
push Fix concurrent modification errors in pusher metrics (#7106) 2020-03-19 10:28:49 +00:00
replication Convert *StreamRow classes to inner classes (#7116) 2020-03-23 13:59:11 +00:00
res/templates Use innerText instead of innerHTML 2020-03-13 19:09:22 +00:00
rest Fix CAS redirect url (#6634) 2020-03-24 11:59:04 +00:00
server_notices Add local_current_membership table (#6655) 2020-01-15 14:59:33 +00:00
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
static
storage Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
streams
util Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
__init__.py 1.12.0 2020-03-23 12:13:09 +00:00
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
notifier.py Wake up transaction queue when remote server comes back online (#6706) 2020-01-17 10:27:19 +00:00
python_dependencies.py Type defintions for use in refactoring for redaction changes (#6803) 2020-01-30 11:25:59 +00:00
secrets.py
server.py Share SSL contexts for non-federation requests (#7094) 2020-03-17 21:32:25 +00:00
server.pyi Port PresenceHandler to async/await (#6991) 2020-02-26 15:33:26 +00:00
types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
visibility.py Refactor a bit 2020-03-11 18:49:41 +00:00