clean up logging

This commit is contained in:
Eric Mastro 2023-04-24 16:32:32 +10:00
parent 757221e532
commit f9cfaf628d
No known key found for this signature in database
4 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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

View File

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