clean up logging
This commit is contained in:
parent
757221e532
commit
f9cfaf628d
|
@ -58,7 +58,7 @@ method prove*(proving: Proving, slot: Slot) {.base, async.} =
|
|||
raiseAssert "onProve callback not set"
|
||||
try:
|
||||
let proof = await onProve(slot)
|
||||
debug "submitting proof"
|
||||
trace "submitting proof", currentPeriod = await proving.getCurrentPeriod()
|
||||
await proving.market.submitProof(slot.id, proof)
|
||||
except CatchableError as e:
|
||||
error "Submitting proof failed", msg = e.msg
|
||||
|
|
|
@ -40,7 +40,7 @@ method prove(proving: SimulatedProving, slot: Slot) {.async.} =
|
|||
proving.proofCount mod proving.failEveryNProofs == 0'u:
|
||||
proving.proofCount = 0
|
||||
try:
|
||||
debug "submitting INVALID proof"
|
||||
trace "submitting INVALID proof", currentPeriod = await proving.getCurrentPeriod()
|
||||
await proving.market.submitProof(slot.id, newSeq[byte](0))
|
||||
except ProviderError as e:
|
||||
if not e.revertReason.contains("Invalid proof"):
|
||||
|
|
|
@ -20,6 +20,7 @@ template multinodesuite*(name: string,
|
|||
echo ""
|
||||
echo "More test debug logging is available by running the tests with " &
|
||||
"'-d:chronicles_log_level=TRACE " &
|
||||
"-d:chronicles_disabled_topics=websock " &
|
||||
"-d:chronicles_default_output_device=stdout " &
|
||||
"-d:chronicles_sinks=textlines'"
|
||||
echo ""
|
||||
|
|
|
@ -51,7 +51,7 @@ proc init*(_: type StartNodes,
|
|||
|
||||
proc init*(_: type DebugNodes,
|
||||
client, provider, validator: bool,
|
||||
topics: string = "validator,proving"): DebugNodes =
|
||||
topics: string = "validator,proving,market"): DebugNodes =
|
||||
DebugNodes(client: client, provider: provider, validator: validator,
|
||||
topics: topics)
|
||||
|
||||
|
|
Loading…
Reference in New Issue