From 2930b65eb4e552ac53cdec25fb3be853465b1b32 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 7 Apr 2020 19:04:22 +0300 Subject: [PATCH] [skip ci] simple logging fix --- beacon_chain/beacon_node.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/beacon_chain/beacon_node.nim b/beacon_chain/beacon_node.nim index e99e7af0c..d1505a0e0 100644 --- a/beacon_chain/beacon_node.nim +++ b/beacon_chain/beacon_node.nim @@ -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)