api: don't log full API params as the upload ones can be too much for logging
This commit is contained in:
parent
94552dd0df
commit
fe51098720
1 changed files with 2 additions and 1 deletions
|
|
@ -333,6 +333,7 @@ def setup_request(request):
|
|||
raise JSONRPCError("Content-Length is 0")
|
||||
|
||||
raw_body = request.body
|
||||
log.debug("Loading JSON body now")
|
||||
try:
|
||||
json_body = json.loads(raw_body)
|
||||
except ValueError as e:
|
||||
|
|
@ -359,7 +360,7 @@ def setup_request(request):
|
|||
request.rpc_params = json_body['args'] \
|
||||
if isinstance(json_body['args'], dict) else {}
|
||||
|
||||
log.debug('method: %s, params: %s', request.rpc_method, request.rpc_params)
|
||||
log.debug('method: %s, params: %.10240r', request.rpc_method, request.rpc_params)
|
||||
except KeyError as e:
|
||||
raise JSONRPCError('Incorrect JSON data. Missing %s' % e)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue