diff --git a/lntest/harness_node.go b/lntest/harness_node.go index 79bacb822..3b1e8bebc 100644 --- a/lntest/harness_node.go +++ b/lntest/harness_node.go @@ -609,7 +609,7 @@ func (hn *HarnessNode) startLnd(lndBinary string, lndError chan<- error) error { fileName string err error ) - if *logOutput { + if *LogOutput { fileName, err = addLogFile(hn) if err != nil { return err @@ -1843,7 +1843,7 @@ func finalizeLogfile(hn *HarnessNode, fileName string) { hn.logFile.Close() // If logoutput flag is not set, return early. - if !*logOutput { + if !*LogOutput { return } diff --git a/lntest/test_common.go b/lntest/test_common.go index 3259bf1cb..35adf6604 100644 --- a/lntest/test_common.go +++ b/lntest/test_common.go @@ -42,7 +42,9 @@ var ( // logOutput is a flag that can be set to append the output from the // seed nodes to log files. - logOutput = flag.Bool("logoutput", false, + // + // TODO(yy): remove the export. + LogOutput = flag.Bool("logoutput", false, "log output from node n to file output-n.log") // logSubDir is the default directory where the logs are written to if