Skip to content

Commit

Permalink
[api] log properly json-formated requests/replies
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Jun 24, 2016
1 parent 27c4bb6 commit 0c02ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grapheneapi/graphenewsrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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']:
Expand Down

0 comments on commit 0c02ca2

Please sign in to comment.