chore: log config once preset is applied to show final values

This commit is contained in:
fryorcraken 2024-07-12 15:53:29 +10:00 committed by fryorcraken
parent d9c6d77295
commit 3dc0a821c8

View File

@ -90,7 +90,6 @@ func version*(waku: Waku): string =
proc init*(T: type Waku, srcConf: WakuNodeConf): Result[Waku, string] =
let rng = crypto.newRng()
logConfig(srcConf)
logging.setupLog(srcConf.logLevel, srcConf.logFormat)
# Why can't I replace this block with a concise `.valueOr`?
@ -101,6 +100,8 @@ proc init*(T: type Waku, srcConf: WakuNodeConf): Result[Waku, string] =
return err("Failed to complete the config:" & $res.error)
res.get()
logConfig(finalConf)
info "Running nwaku node", version = git_version
debug "Retrieve dynamic bootstrap nodes"