From fa078984c9cc706dc7b510a8ada26c3026713647 Mon Sep 17 00:00:00 2001
From: MarcoFalke <falke.marco@gmail.com>
Date: Mon, 8 Apr 2019 17:34:42 -0400
Subject: test: Properly log named args in authproxy

---
 test/functional/test_framework/authproxy.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'test/functional/test_framework')

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',
-- 
cgit v1.2.3