mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-30 09:40:24 +02:00
lntest: export flag logoutput
This commit temporarily exports the flag `logoutput` so it can be used by `lntemp`.
This commit is contained in:
parent
cf0e0820d6
commit
cd5ab844e2
@ -609,7 +609,7 @@ func (hn *HarnessNode) startLnd(lndBinary string, lndError chan<- error) error {
|
|||||||
fileName string
|
fileName string
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
if *logOutput {
|
if *LogOutput {
|
||||||
fileName, err = addLogFile(hn)
|
fileName, err = addLogFile(hn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -1843,7 +1843,7 @@ func finalizeLogfile(hn *HarnessNode, fileName string) {
|
|||||||
hn.logFile.Close()
|
hn.logFile.Close()
|
||||||
|
|
||||||
// If logoutput flag is not set, return early.
|
// If logoutput flag is not set, return early.
|
||||||
if !*logOutput {
|
if !*LogOutput {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,9 @@ var (
|
|||||||
|
|
||||||
// logOutput is a flag that can be set to append the output from the
|
// logOutput is a flag that can be set to append the output from the
|
||||||
// seed nodes to log files.
|
// 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")
|
"log output from node n to file output-n.log")
|
||||||
|
|
||||||
// logSubDir is the default directory where the logs are written to if
|
// logSubDir is the default directory where the logs are written to if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user