debugging: change echo to trace

This commit is contained in:
Eric 2023-09-14 16:37:39 +10:00
parent 658ef1a217
commit 668ff7be8d
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View File

@ -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)

2
vendor/nim-ethers vendored

@ -1 +1 @@
Subproject commit 8fff63102a3461ddec61714df80840740eaade1f
Subproject commit 5d70c83be109abb4ef05596424e7860c55967ee5