From 0c02ca20dfec0189e7035a735d2b4ec11e6a4c3e Mon Sep 17 00:00:00 2001 From: Fabian Schuh Date: Fri, 24 Jun 2016 16:39:25 +0200 Subject: [PATCH] [api] log properly json-formated requests/replies --- grapheneapi/graphenewsrpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grapheneapi/graphenewsrpc.py b/grapheneapi/graphenewsrpc.py index 0f440967..bc9073d2 100644 --- a/grapheneapi/graphenewsrpc.py +++ b/grapheneapi/graphenewsrpc.py @@ -283,7 +283,7 @@ def rpcexec(self, payload): :raises RPCError: if the server returns an error """ try: - log.debug(payload) + log.debug(json.dumps(payload)) while True: try: self.ws.send(json.dumps(payload)) @@ -297,7 +297,7 @@ def rpcexec(self, payload): self.wsconnect() except: pass - log.debug(ret) + log.debug(json.dumps(ret)) if 'error' in ret: if 'detail' in ret['error']: