Skip to content

Commit fa07898

Browse files
author
MarcoFalke
committed
test: Properly log named args in authproxy
1 parent 297ea51 commit fa07898

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)