mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 22:43:12 +00:00
disable all logging to see if windows passes
This commit is contained in:
parent
c22cc10d48
commit
2d8783f49e
@ -167,7 +167,7 @@ template multinodesuite*(name: string, body: untyped) =
|
||||
sanitize($starttime) / sanitize($role & "_" & $roleIdx)
|
||||
|
||||
try:
|
||||
if config.logFile.isSome or CodexLogToFile:
|
||||
if config.logFile.isSome: # or CodexLogToFile:
|
||||
try:
|
||||
let updatedLogFile = getLogFile(
|
||||
CodexLogsDir, starttime, name, currentTestName, $role, some roleIdx
|
||||
@ -360,15 +360,15 @@ template multinodesuite*(name: string, body: untyped) =
|
||||
except CatchableError as e:
|
||||
raiseMultiNodeSuiteError "Failed to get node info: " & e.msg, e
|
||||
|
||||
setupAll:
|
||||
# When this file is run with `-d:chronicles_sinks=textlines[file]`, we
|
||||
# need to set the log file path at runtime, otherwise chronicles didn't seem to
|
||||
# create a log file even when using an absolute path
|
||||
when defaultChroniclesStream.outputs is (FileOutput,) and CodexLogsDir.len > 0:
|
||||
let logFile =
|
||||
CodexLogsDir / sanitize(getAppFilename().extractFilename & ".chronicles.log")
|
||||
let success = defaultChroniclesStream.outputs[0].open(logFile, fmAppend)
|
||||
doAssert success, "Failed to open log file: " & logFile
|
||||
# setupAll:
|
||||
# # When this file is run with `-d:chronicles_sinks=textlines[file]`, we
|
||||
# # need to set the log file path at runtime, otherwise chronicles didn't seem to
|
||||
# # create a log file even when using an absolute path
|
||||
# when defaultChroniclesStream.outputs is (FileOutput,) and CodexLogsDir.len > 0:
|
||||
# let logFile =
|
||||
# CodexLogsDir / sanitize(getAppFilename().extractFilename & ".chronicles.log")
|
||||
# let success = defaultChroniclesStream.outputs[0].open(logFile, fmAppend)
|
||||
# doAssert success, "Failed to open log file: " & logFile
|
||||
|
||||
setup:
|
||||
if var conf =? nodeConfigs.hardhat:
|
||||
|
||||
@ -438,10 +438,10 @@ proc teardownTest(
|
||||
stdoutBytes = output.stdOut.len,
|
||||
stderrFile = test.logFile("stderr.log"),
|
||||
stderrBytes = output.stdErr.len
|
||||
test.logFile("stdout.log").appendFile(output.stdOut.stripAnsi)
|
||||
if test.status == IntegrationTestStatus.Error or
|
||||
(test.status == IntegrationTestStatus.Failed and test.output.isErrorLike):
|
||||
test.logFile("stderr.log").appendFile(output.stdErr.stripAnsi)
|
||||
# test.logFile("stdout.log").appendFile(output.stdOut.stripAnsi)
|
||||
# if test.status == IntegrationTestStatus.Error or
|
||||
# (test.status == IntegrationTestStatus.Failed and test.output.isErrorLike):
|
||||
# test.logFile("stderr.log").appendFile(output.stdErr.stripAnsi)
|
||||
except AsyncTimeoutError:
|
||||
error "Timeout waiting for stdout or stderr stream contents, nothing will be written to file"
|
||||
except IOError as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user