synapse/synapse/util
Eric Eastwood edc0de9fa0
Fix bad deferred logcontext handling (#19180)
These aren't really something personally experienced but I just went
around the codebase looking for all of the Deferred `.callback`,
`.errback`, and `.cancel` and wrapped them with
`PreserveLoggingContext()`

Spawning from wanting to solve
https://github.com/element-hq/synapse/issues/19165 but unconfirmed
whether this has any effect.

To explain the fix, see the [*Deferred
callbacks*](3b59ac3b69/docs/log_contexts.md (deferred-callbacks))
section of our logcontext docs for more info (specifically using
solution 2).
2025-11-14 11:21:15 -06:00
..
caches Fix bad deferred logcontext handling (#19180) 2025-11-14 11:21:15 -06:00
__init__.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
async_helpers.py Fix bad deferred logcontext handling (#19180) 2025-11-14 11:21:15 -06:00
background_queue.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
batching_queue.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
cancellation.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
check_dependencies.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
clock.py Add debug logs to track Clock callbacks (#19173) 2025-11-13 12:07:23 -06:00
constants.py Remove MockClock() (#18992) 2025-09-30 11:27:29 -05:00
daemonize.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
distributor.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
events.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
file_consumer.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
frozenutils.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
gai_resolver.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
hash.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
httpresourcetree.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
iterutils.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
json.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
linked_list.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
logcontext.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
logformatter.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
macaroons.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
manhole.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
metrics.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
module_loader.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
msisdn.py Return specific error code when email / phone not supported (#17578) 2025-05-05 11:08:50 +02:00
patch_inline_callbacks.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
pydantic_models.py Merge branch 'release-v1.142' into develop 2025-11-07 12:09:02 +00:00
ratelimitutils.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
retryutils.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
rlimit.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
rust.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
sentinel.py Fix performance regression related to delayed events processing (#18926) 2025-09-23 09:47:30 +01:00
stringutils.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
task_scheduler.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
templates.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
threepids.py Update license headers 2023-11-21 15:29:58 -05:00
wheel_timer.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00