Skip to content

Commit f3ecf30

Browse files
author
MarcoFalke
committed
Merge #15772: test: Properly log named args in authproxy
fa07898 test: Properly log named args in authproxy (MarcoFalke) Pull request description: ACKs for commit fa0789: promag: ACK fa07898, for instance: practicalswift: utACK fa07898 Tree-SHA512: 3a2564c9b8392c2ef13657138fa0ba4a521015e2d53331156d2a07ccc9497fb268f21e8d93b065c5734d25e4aea8f5cf67f07e6ab93b0ec2987d66a136f94bb8
2 parents 54798c3 + fa07898 commit f3ecf30

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/functional/test_framework/authproxy.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ def _request(self, method, path, postdata):
122122
def get_request(self, *args, **argsn):
123123
AuthServiceProxy.__id_count += 1
124124

125-
log.debug("-%s-> %s %s" % (AuthServiceProxy.__id_count, self._service_name,
126-
json.dumps(args, default=EncodeDecimal, ensure_ascii=self.ensure_ascii)))
125+
log.debug("-{}-> {} {}".format(
126+
AuthServiceProxy.__id_count,
127+
self._service_name,
128+
json.dumps(args or argsn, default=EncodeDecimal, ensure_ascii=self.ensure_ascii),
129+
))
127130
if args and argsn:
128131
raise ValueError('Cannot handle both named and positional arguments')
129132
return {'version': '1.1',

0 commit comments

Comments
 (0)