From 3de0982a4ae59c4fe4f2acb1d56205704ebb7454 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 7 Jul 2021 18:39:25 -0300 Subject: [PATCH] limit request error logging to 16k --- lbry/wallet/rpc/session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/rpc/session.py b/lbry/wallet/rpc/session.py index 0589b3edb..ceae4b125 100644 --- a/lbry/wallet/rpc/session.py +++ b/lbry/wallet/rpc/session.py @@ -436,7 +436,8 @@ class RPCSession(SessionBase): except CancelledError: raise except Exception: - self.logger.exception(f'exception handling {request}') + reqstr = str(request) + self.logger.exception(f'exception handling {reqstr[:16_000]}') result = RPCError(JSONRPC.INTERNAL_ERROR, 'internal server error') if isinstance(request, Request):