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:
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):