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:
Patrick Lodder 2023-08-07 15:50:44 -04:00
parent 0014ad2867
commit 0906eb7ea2
No known key found for this signature in database
GPG Key ID: 7C523F5FBABE80E7

View File

@ -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',