aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-04-08 17:34:42 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-04-08 18:38:54 -0400
commitfa078984c9cc706dc7b510a8ada26c3026713647 (patch)
treeb19be2f6a564579016ff8a17937b5450748488b5 /test
parent297ea51caf2f013ee687f00467d87002e7097563 (diff)
test: Properly log named args in authproxy
Diffstat (limited to 'test')
-rw-r--r--test/functional/test_framework/authproxy.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py
index d039f7d6fe..4ba6ac1db2 100644
--- a/test/functional/test_framework/authproxy.py
+++ b/test/functional/test_framework/authproxy.py
@@ -122,8 +122,11 @@ class AuthServiceProxy():
def get_request(self, *args, **argsn):
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)))
+ log.debug("-{}-> {} {}".format(
+ AuthServiceProxy.__id_count,
+ self._service_name,
+ 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')
return {'version': '1.1',