mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-03-14 15:37:33 +00:00
qa: also log named arguments when using --tracerpc
This logs either positional arguments or named arguments if no positional arguments exist when using --tracerpc to allow deep examination of calls that use named arguments. The __call__ function rejects any calls made using both positional and named arguments, therefore we can print either in this construction.
This commit is contained in:
parent
0014ad2867
commit
0906eb7ea2
@ -142,7 +142,7 @@ class AuthServiceProxy(object):
|
||||
AuthServiceProxy.__id_count += 1
|
||||
|
||||
log.debug("-%s-> %s %s"%(AuthServiceProxy.__id_count, self._service_name,
|
||||
json.dumps(args, default=EncodeDecimal, ensure_ascii=self.ensure_ascii)))
|
||||
json.dumps(args or argsn, default=EncodeDecimal, ensure_ascii=self.ensure_ascii)))
|
||||
if args and argsn:
|
||||
raise ValueError('Cannot handle both named and positional arguments')
|
||||
postdata = json.dumps({'version': '1.1',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user