From 8df351d917fef0401461388140f223426cd732e2 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Thu, 23 Nov 2023 12:39:23 +1100 Subject: [PATCH] extra debug --- codex/node.nim | 2 +- codex/sales.nim | 2 +- tests/integration/testIntegration.nim | 6 +++--- tests/integration/testproofs.nim | 12 ++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/codex/node.nim b/codex/node.nim index cd1af002..5e0c0087 100644 --- a/codex/node.nim +++ b/codex/node.nim @@ -325,7 +325,7 @@ proc requestStorage*( ## - Run the PoR setup on the erasure dataset ## - Call into the marketplace and purchasing contracts ## - trace "Received a request for storage!", cid, duration, nodes, tolerance, reward, proofProbability, collateral, expiry + trace "Received a request for storage!", cid, duration, nodes, tolerance, reward, proofProbability, collateral, expiry = expiry.truncate(int64), now = self.clock.now without contracts =? self.contracts.client: trace "Purchasing not available" diff --git a/codex/sales.nim b/codex/sales.nim index 01c2b57f..4968e11e 100644 --- a/codex/sales.nim +++ b/codex/sales.nim @@ -288,7 +288,7 @@ proc onStorageRequested(sales: Sales, expiry: UInt256) = logScope: - topics = " marketplace sales onStorageRequested" + topics = "marketplace sales onStorageRequested" requestId slots = ask.slots expiry diff --git a/tests/integration/testIntegration.nim b/tests/integration/testIntegration.nim index d04698d0..212d1872 100644 --- a/tests/integration/testIntegration.nim +++ b/tests/integration/testIntegration.nim @@ -239,15 +239,15 @@ marketplacesuite "Marketplace payouts": NodeConfig() .nodes(1) .debug() # uncomment to enable console log output.debug() - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log .withLogTopics("node", "erasure"), providers: NodeConfig() .nodes(1) .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - .withLogTopics("marketplace", "sales", "reservations", "node", "clock"), + .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("marketplace", "sales", "reservations", "node", "proving"), ): let reward = 400.u256 let duration = 100.periods diff --git a/tests/integration/testproofs.nim b/tests/integration/testproofs.nim index 6e52ebf5..9985123d 100644 --- a/tests/integration/testproofs.nim +++ b/tests/integration/testproofs.nim @@ -31,7 +31,7 @@ marketplacesuite "Hosts submit regular proofs": .nodes(1) .debug() # uncomment to enable console log output .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - .withLogTopics("marketplace", "sales", "reservations", "node", "clock"), + .withLogTopics("marketplace", "sales", "reservations", "node"), ): let client0 = clients()[0].node.client let totalPeriods = 50 @@ -81,14 +81,14 @@ marketplacesuite "Simulate invalid proofs": .simulateProofFailuresFor(providerIdx=0, failEveryNProofs=1) .debug() # uncomment to enable console log output .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - .withLogTopics("marketplace", "sales", "reservations", "node", "clock"), + .withLogTopics("marketplace", "sales", "reservations", "node"), validators: NodeConfig() .nodes(1) .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log .debug() # uncomment to enable console log output - .withLogTopics("validator", "clock", "onchain", "ethers") + .withLogTopics("validator", "onchain", "ethers") ): let client0 = clients()[0].node.client let totalPeriods = 50 @@ -133,13 +133,13 @@ marketplacesuite "Simulate invalid proofs": .simulateProofFailuresFor(providerIdx=0, failEveryNProofs=3) .debug() # uncomment to enable console log output .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - .withLogTopics("marketplace", "sales", "reservations", "node", "clock"), + .withLogTopics("marketplace", "sales", "reservations", "node"), validators: NodeConfig() .nodes(1) .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - .withLogTopics("validator", "clock", "onchain", "ethers") + .withLogTopics("validator", "onchain", "ethers") ): let client0 = clients()[0].node.client let totalPeriods = 25 @@ -185,7 +185,7 @@ marketplacesuite "Simulate invalid proofs": .simulateProofFailuresFor(providerIdx=0, failEveryNProofs=2) .debug() # uncomment to enable console log output .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - .withLogTopics("marketplace", "sales", "reservations", "node", "clock"), + .withLogTopics("marketplace", "sales", "reservations", "node"), validators: NodeConfig()