limit request error logging to 16k
This commit is contained in:
parent
c2184fb3bf
commit
3de0982a4a
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue