debugging: change echo to trace
This commit is contained in:
parent
658ef1a217
commit
668ff7be8d
|
@ -83,8 +83,7 @@ template cancelOnError*(market: Market, body) =
|
|||
try:
|
||||
body
|
||||
except JsonRpcProviderError as e:
|
||||
writeStackTrace()
|
||||
echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce, ", error: ", e.msg
|
||||
trace "error encountered, cancelling tx if there's a nonce present", nonce = e.nonce, error = e.msg
|
||||
if e.nonce.isSome:
|
||||
# send a 0-valued transaction with the errored nonce to prevent stuck txs
|
||||
await market.cancelTransaction(!e.nonce)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 8fff63102a3461ddec61714df80840740eaade1f
|
||||
Subproject commit 5d70c83be109abb4ef05596424e7860c55967ee5
|
Loading…
Reference in New Issue