Merge #15772: test: Properly log named args in authproxy
fa078984c9
test: Properly log named args in authproxy (MarcoFalke) Pull request description: ACKs for commit fa0789: promag: ACKfa07898
, for instance: practicalswift: utACKfa078984c9
Tree-SHA512: 3a2564c9b8392c2ef13657138fa0ba4a521015e2d53331156d2a07ccc9497fb268f21e8d93b065c5734d25e4aea8f5cf67f07e6ab93b0ec2987d66a136f94bb8
This commit is contained in:
commit
f3ecf3025f
1 changed files with 5 additions and 2 deletions
|
@ -122,8 +122,11 @@ class AuthServiceProxy():
|
||||||
def get_request(self, *args, **argsn):
|
def get_request(self, *args, **argsn):
|
||||||
AuthServiceProxy.__id_count += 1
|
AuthServiceProxy.__id_count += 1
|
||||||
|
|
||||||
log.debug("-%s-> %s %s" % (AuthServiceProxy.__id_count, self._service_name,
|
log.debug("-{}-> {} {}".format(
|
||||||
json.dumps(args, default=EncodeDecimal, ensure_ascii=self.ensure_ascii)))
|
AuthServiceProxy.__id_count,
|
||||||
|
self._service_name,
|
||||||
|
json.dumps(args or argsn, default=EncodeDecimal, ensure_ascii=self.ensure_ascii),
|
||||||
|
))
|
||||||
if args and argsn:
|
if args and argsn:
|
||||||
raise ValueError('Cannot handle both named and positional arguments')
|
raise ValueError('Cannot handle both named and positional arguments')
|
||||||
return {'version': '1.1',
|
return {'version': '1.1',
|
||||||
|
|
Loading…
Add table
Reference in a new issue