mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-23 02:35:36 +00:00
More log lines.
This commit is contained in:
parent
3187b5ba2d
commit
cd198dfea8
@ -256,10 +256,14 @@ class TransportLayer(object):
|
|||||||
def _with_authentication(self, handler):
|
def _with_authentication(self, handler):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def new_handler(request, *args, **kwargs):
|
def new_handler(request, *args, **kwargs):
|
||||||
(origin, content) = yield self._authenticate_request(request)
|
try:
|
||||||
response = yield handler(
|
(origin, content) = yield self._authenticate_request(request)
|
||||||
origin, content, request.args, *args, **kwargs
|
response = yield handler(
|
||||||
)
|
origin, content, request.args, *args, **kwargs
|
||||||
|
)
|
||||||
|
except:
|
||||||
|
logger.exception("_authenticate_request failed")
|
||||||
|
raise
|
||||||
defer.returnValue(response)
|
defer.returnValue(response)
|
||||||
return new_handler
|
return new_handler
|
||||||
|
|
||||||
@ -392,9 +396,13 @@ class TransportLayer(object):
|
|||||||
defer.returnValue((400, {"error": "Invalid transaction"}))
|
defer.returnValue((400, {"error": "Invalid transaction"}))
|
||||||
return
|
return
|
||||||
|
|
||||||
code, response = yield self.received_handler.on_incoming_transaction(
|
try:
|
||||||
transaction_data
|
code, response = yield self.received_handler.on_incoming_transaction(
|
||||||
)
|
transaction_data
|
||||||
|
)
|
||||||
|
except:
|
||||||
|
logger.exception("on_incoming_transaction failed")
|
||||||
|
raise
|
||||||
|
|
||||||
defer.returnValue((code, response))
|
defer.returnValue((code, response))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user