synapse/synapse/http
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
..
federation Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
__init__.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
additional_resource.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
client.py Fix bad deferred logcontext handling (#19180) 2025-11-14 11:21:15 -06:00
connectproxyclient.py Fix bad deferred logcontext handling (#19180) 2025-11-14 11:21:15 -06:00
matrixfederationclient.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
proxy.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
proxyagent.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
replicationagent.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
request_metrics.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
server.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
servlet.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
site.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
types.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00