##// END OF EJS Templates
api: don't log full API params as the upload ones can be too much for logging
marcink -
r3993:648bee25 default
parent child Browse files
Show More
@@ -333,6 +333,7 b' def setup_request(request):'
333 333 raise JSONRPCError("Content-Length is 0")
334 334
335 335 raw_body = request.body
336 log.debug("Loading JSON body now")
336 337 try:
337 338 json_body = json.loads(raw_body)
338 339 except ValueError as e:
@@ -359,7 +360,7 b' def setup_request(request):'
359 360 request.rpc_params = json_body['args'] \
360 361 if isinstance(json_body['args'], dict) else {}
361 362
362 log.debug('method: %s, params: %s', request.rpc_method, request.rpc_params)
363 log.debug('method: %s, params: %.10240r', request.rpc_method, request.rpc_params)
363 364 except KeyError as e:
364 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