Skip to content

Commit

Permalink
Added debug statements for tracking low level RPC calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ESultanik committed Feb 6, 2019
1 parent 3631af2 commit dee5e7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etheno/etheno.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def estimate_gas(self, transaction):
return None

def post(self, data):
self.logger.debug(f"Handling JSON RPC request {data}")

for plugin in self.plugins:
plugin.before_post(data)

Expand Down Expand Up @@ -198,6 +200,7 @@ def post(self, data):
ret = e

self.rpc_client_result = ret
self.logger.debug(f"Result from the master client ({self.master_client}): {ret}")

results = []

Expand All @@ -223,6 +226,7 @@ def post(self, data):
except JSONRPCError as e:
self.logger.error(e)
results.append(e)
self.logger.debug(f"Result from client {client}: {results[-1]}")

if ret is None:
return None
Expand Down Expand Up @@ -353,6 +357,8 @@ def post(self):

ret = ETHENO.post(data)

ETHENO.logger.debug(f"Returning {ret}")

if ret is None:
return None

Expand Down

0 comments on commit dee5e7f

Please sign in to comment.