From 9646448e971a6e11df1eb81b0776346fc456a50e Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 23 Jun 2025 06:04:05 +0200 Subject: [PATCH] Add more logs --- tests/integration/testproofs.nim | 62 +++++++++++++++-------------- tests/integration/testsales.nim | 3 +- tests/integration/testvalidator.nim | 12 +++--- 3 files changed, 40 insertions(+), 37 deletions(-) diff --git a/tests/integration/testproofs.nim b/tests/integration/testproofs.nim index c30b597d..98bd04f5 100644 --- a/tests/integration/testproofs.nim +++ b/tests/integration/testproofs.nim @@ -94,29 +94,29 @@ marketplacesuite(name = "Simulate invalid proofs", stopOnRequestFail = false): NodeConfigs( # Uncomment to start Hardhat automatically, typically so logs can be inspected locally hardhat: HardhatConfig.none, - clients: CodexConfigs.init(nodes = 1) - # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("node", "marketplace", "clock") - .some, + clients: CodexConfigs + .init(nodes = 1) + # .debug() # uncomment to enable console log output + .withLogFile() + # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("node", "marketplace", "clock").some, providers: CodexConfigs .init(nodes = 1) .withSimulateProofFailures(idx = 0, failEveryNProofs = 1) # .debug() # uncomment to enable console log output - # .withLogFile() + .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics( - # "marketplace", "sales", "reservations", "node", "clock", "slotsbuilder" - # ) - .some, - validators: CodexConfigs.init(nodes = 1) - # .debug() - # uncomment to enable console log output - # .withLogFile() - # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("validator", "onchain", "ethers", "clock") - .some, + .withLogTopics( + "marketplace", "sales", "reservations", "node", "clock", "slotsbuilder" + ).some, + validators: CodexConfigs + .init(nodes = 1) + # .debug() + # uncomment to enable console log output + .withLogFile() + #uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("validator", "onchain", "ethers", "clock").some, ): let client0 = clients()[0].client let expiry = 10.periods @@ -163,23 +163,25 @@ marketplacesuite(name = "Simulate invalid proofs", stopOnRequestFail = false): NodeConfigs( # Uncomment to start Hardhat automatically, typically so logs can be inspected locally hardhat: HardhatConfig.none, - clients: CodexConfigs.init(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") - .some, + clients: CodexConfigs + .init(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").some, providers: CodexConfigs .init(nodes = 1) .withSimulateProofFailures(idx = 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") - .some, - validators: CodexConfigs.init(nodes = 1) - # .debug() - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("validator", "onchain", "ethers", "clock") - .some, + .withLogFile() + # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("marketplace", "sales", "reservations", "node").some, + validators: CodexConfigs + .init(nodes = 1) + # .debug() + .withLogFile() + # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("validator", "onchain", "ethers", "clock").some, ): let client0 = clients()[0].client let expiry = 10.periods diff --git a/tests/integration/testsales.nim b/tests/integration/testsales.nim index 971bdd56..073da0f6 100644 --- a/tests/integration/testsales.nim +++ b/tests/integration/testsales.nim @@ -25,7 +25,8 @@ marketplacesuite(name = "Sales", stopOnRequestFail = true): .withLogTopics("node", "marketplace").some, providers: CodexConfigs .init(nodes = 1) - # .debug() # uncomment to enable console log output + .debug() + # uncomment to enable console log output .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log .withLogTopics( diff --git a/tests/integration/testvalidator.nim b/tests/integration/testvalidator.nim index 4afde2b5..539eca5b 100644 --- a/tests/integration/testvalidator.nim +++ b/tests/integration/testvalidator.nim @@ -38,9 +38,9 @@ marketplacesuite(name = "Validation", stopOnRequestFail = false): .init(nodes = 1) .withSimulateProofFailures(idx = 0, failEveryNProofs = 1) # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("sales", "onchain") - .some, + .withLogFile() + # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("sales", "onchain").some, validators: CodexConfigs .init(nodes = 2) .withValidationGroups(groups = 2) @@ -110,9 +110,9 @@ marketplacesuite(name = "Validation", stopOnRequestFail = false): .init(nodes = 1) .withSimulateProofFailures(idx = 0, failEveryNProofs = 1) # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("sales", "onchain") - .some, + .withLogFile() + # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("sales", "onchain").some, ): let client0 = clients()[0].client let expiry = 5.periods