mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Trace non-JSON APIs, /media, /key etc
This commit is contained in:
parent
a0d0ba7862
commit
f3ceaf4323
2 changed files with 11 additions and 5 deletions
|
@ -388,7 +388,7 @@ class DirectServeResource(resource.Resource):
|
|||
if not callback:
|
||||
return super().render(request)
|
||||
|
||||
resp = callback(request)
|
||||
resp = trace_servlet(self.__class__.__name__)(callback)(request)
|
||||
|
||||
# If it's a coroutine, turn it into a Deferred
|
||||
if isinstance(resp, types.CoroutineType):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue