diff options
| author | MarcoFalke <[email protected]> | 2019-04-08 17:34:42 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-04-08 18:38:54 -0400 |
| commit | fa078984c9cc706dc7b510a8ada26c3026713647 (patch) | |
| tree | b19be2f6a564579016ff8a17937b5450748488b5 | |
| parent | Merge #15760: doc: Clarify sendrawtransaction::maxfeerate==0 help (diff) | |
| download | discoin-fa078984c9cc706dc7b510a8ada26c3026713647.tar.xz discoin-fa078984c9cc706dc7b510a8ada26c3026713647.zip | |
test: Properly log named args in authproxy
| -rw-r--r-- | test/functional/test_framework/authproxy.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index d039f7d6f..4ba6ac1db 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', |