[skip ci] simple logging fix

This commit is contained in:
Zahary Karadjov 2020-04-07 19:04:22 +03:00
parent b4fc641b8c
commit 2930b65eb4
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 5 additions and 4 deletions

View File

@ -1213,10 +1213,6 @@ when isMainModule:
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe.} =
stdout.write(msg)
debug "Launching beacon node",
version = fullVersionStr,
cmdParams = commandLineParams(), config
randomize()
if config.logLevel != LogLevel.NONE:
@ -1299,6 +1295,11 @@ when isMainModule:
reportFailureFor keyFile.string
of noCommand:
debug "Launching beacon node",
version = fullVersionStr,
cmdParams = commandLineParams(),
config
createPidFile(config.dataDir.string / "beacon_node.pid")
var node = waitFor BeaconNode.init(config)