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:
|
try:
|
||||||
body
|
body
|
||||||
except JsonRpcProviderError as e:
|
except JsonRpcProviderError as e:
|
||||||
writeStackTrace()
|
trace "error encountered, cancelling tx if there's a nonce present", nonce = e.nonce, error = e.msg
|
||||||
echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce, ", error: ", e.msg
|
|
||||||
if e.nonce.isSome:
|
if e.nonce.isSome:
|
||||||
# send a 0-valued transaction with the errored nonce to prevent stuck txs
|
# send a 0-valued transaction with the errored nonce to prevent stuck txs
|
||||||
await market.cancelTransaction(!e.nonce)
|
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