forked-synapse/synapse/util
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
..
caches Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00
__init__.py move batch_iter to a separate module 2020-01-16 22:25:32 +00:00
async_helpers.py Fix stacktraces when using ObservableDeferred and async/await (#6836) 2020-02-03 17:10:54 +00:00
distributor.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
file_consumer.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
frozenutils.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
hash.py Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976) 2019-09-11 16:02:42 +01:00
httpresourcetree.py Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
iterutils.py Log saml assertions rather than the whole response 2020-01-16 22:26:34 +00:00
jsonobject.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
logcontext.py Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
logformatter.py Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
manhole.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
metrics.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
module_loader.py Handle config not being set for synapse plugin modules 2020-01-12 21:34:36 +00:00
msisdn.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
patch_inline_callbacks.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
ratelimitutils.py Fixes to the federation rate limiter (#5621) 2019-07-05 11:10:19 +01:00
retryutils.py Fix errors storing large retry intervals. 2019-10-02 10:36:27 +01:00
rlimit.py Remove usage of deprecated logger.warn method from codebase (#6271) 2019-10-31 10:23:24 +00:00
stringutils.py Validate client_secret parameter (#6767) 2020-01-24 14:28:40 +00:00
threepids.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
versionstring.py Handle FileNotFound error in checking git repository version (#6284) 2019-10-30 11:00:15 +00:00
wheel_timer.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00