limit request error logging to 16k

This commit is contained in:
Victor Shyba 2021-07-07 18:39:25 -03:00
parent c2184fb3bf
commit 3de0982a4a

View file

@ -436,7 +436,8 @@ class RPCSession(SessionBase):
except CancelledError: except CancelledError:
raise raise
except Exception: 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, result = RPCError(JSONRPC.INTERNAL_ERROR,
'internal server error') 'internal server error')
if isinstance(request, Request): if isinstance(request, Request):