Show More
@@ -333,6 +333,7 b' def setup_request(request):' | |||||
333 | raise JSONRPCError("Content-Length is 0") |
|
333 | raise JSONRPCError("Content-Length is 0") | |
334 |
|
334 | |||
335 | raw_body = request.body |
|
335 | raw_body = request.body | |
|
336 | log.debug("Loading JSON body now") | |||
336 | try: |
|
337 | try: | |
337 | json_body = json.loads(raw_body) |
|
338 | json_body = json.loads(raw_body) | |
338 | except ValueError as e: |
|
339 | except ValueError as e: | |
@@ -359,7 +360,7 b' def setup_request(request):' | |||||
359 | request.rpc_params = json_body['args'] \ |
|
360 | request.rpc_params = json_body['args'] \ | |
360 | if isinstance(json_body['args'], dict) else {} |
|
361 | if isinstance(json_body['args'], dict) else {} | |
361 |
|
362 | |||
362 |
log.debug('method: %s, params: % |
|
363 | log.debug('method: %s, params: %.10240r', request.rpc_method, request.rpc_params) | |
363 | except KeyError as e: |
|
364 | except KeyError as e: | |
364 | raise JSONRPCError('Incorrect JSON data. Missing %s' % e) |
|
365 | raise JSONRPCError('Incorrect JSON data. Missing %s' % e) | |
365 |
|
366 |
General Comments 0
You need to be logged in to leave comments.
Login now