diff options
author | Erik Johnston <erik@matrix.org> | 2021-04-30 10:24:19 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-04-30 10:24:19 +0100 |
commit | ac0143c4ac7b819fd24c2e67a5bfa3016bbff068 (patch) | |
tree | 744408b51da76f1fe5a4aa1fcac3af15e3289320 | |
parent | Merge branch 'erikj/limit_how_often_gc' into erikj/test_send (diff) | |
download | synapse-ac0143c4ac7b819fd24c2e67a5bfa3016bbff068.tar.xz |
Record size of incoming bytes
-rw-r--r-- | synapse/http/matrixfederationclient.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index bb837b7b19..27662a6dc6 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -225,12 +225,13 @@ async def _handle_json_response( time_taken_secs = reactor.seconds() - start_ms / 1000 logger.info( - "{%s} [%s] Completed request: %d %s in %.2f secs - %s %s", + "{%s} [%s] Completed request: %d %s in %.2f secs got %dB - %s %s", request.txn_id, request.destination, response.code, response.phrase.decode("ascii", errors="replace"), time_taken_secs, + len(buf.getvalue()), request.method, request.uri.decode("ascii"), ) |