Don't log unwanted lines in beacon_node --help
This commit is contained in:
parent
b2d5aba749
commit
57811dce89
|
@ -1044,6 +1044,10 @@ when hasPrompt:
|
||||||
# createThread(t, processPromptCommands, addr p)
|
# createThread(t, processPromptCommands, addr p)
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
|
let config = BeaconNodeConf.load(
|
||||||
|
version = clientId,
|
||||||
|
copyrightBanner = clientId & "\p" & copyrights)
|
||||||
|
|
||||||
when compiles(defaultChroniclesStream.output.writer):
|
when compiles(defaultChroniclesStream.output.writer):
|
||||||
defaultChroniclesStream.output.writer =
|
defaultChroniclesStream.output.writer =
|
||||||
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe.} =
|
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe.} =
|
||||||
|
@ -1051,16 +1055,10 @@ when isMainModule:
|
||||||
|
|
||||||
debug "Launching beacon node",
|
debug "Launching beacon node",
|
||||||
version = fullVersionStr,
|
version = fullVersionStr,
|
||||||
cmdParams = commandLineParams()
|
cmdParams = commandLineParams(), config
|
||||||
|
|
||||||
randomize()
|
randomize()
|
||||||
|
|
||||||
let config = BeaconNodeConf.load(
|
|
||||||
version = clientId,
|
|
||||||
copyrightBanner = clientId & "\p" & copyrights)
|
|
||||||
|
|
||||||
debug "Configuration loaded", config
|
|
||||||
|
|
||||||
if config.logLevel != LogLevel.NONE:
|
if config.logLevel != LogLevel.NONE:
|
||||||
setLogLevel(config.logLevel)
|
setLogLevel(config.logLevel)
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ when networkBackend in [libp2p, libp2pDaemon]:
|
||||||
await node.start()
|
await node.start()
|
||||||
|
|
||||||
await sleepAsync(10.seconds)
|
await sleepAsync(10.seconds)
|
||||||
if libp2p_successful_dials.value == 0:
|
if bootstrapEnrs.len > 0 and libp2p_successful_dials.value == 0:
|
||||||
fatal "Failed to connect to any bootstrap node. Quitting"
|
fatal "Failed to connect to any bootstrap node. Quitting"
|
||||||
quit 1
|
quit 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue