mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-18 15:58:08 +00:00
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)
|
||||
|
2
vendor/nim-ethers
vendored
2
vendor/nim-ethers
vendored
@ -1 +1 @@
|
||||
Subproject commit 8fff63102a3461ddec61714df80840740eaade1f
|
||||
Subproject commit 5d70c83be109abb4ef05596424e7860c55967ee5
|
Loading…
x
Reference in New Issue
Block a user