Skip to content

Commit

Permalink
Merge pull request #6842 from MinaProtocol/feature/no-print-runtime-c…
Browse files Browse the repository at this point in the history
…onfig-at-startup

Trivial: Don't print the runtime configuration/full genesis ledger during startup
  • Loading branch information
mrmr1993 authored Nov 24, 2020
2 parents 1cdf614 + b5080c1 commit 28658cc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/lib/genesis_ledger_helper/genesis_ledger_helper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1219,8 +1219,20 @@ let load_config_file filename =

let init_from_config_file ?(genesis_dir = Cache_dir.autogen_path) ~logger
~may_generate ~proof_level (config : Runtime_config.t) =
[%log info] "Initializing with runtime configuration $config"
~metadata:[("config", Runtime_config.to_yojson config)] ;
let ledger_name_json =
match
let open Option.Let_syntax in
let%bind ledger = config.ledger in
ledger.name
with
| Some name ->
`String name
| None ->
`Null
in
[%log info] "Initializing with runtime configuration. Ledger name: $name"
~metadata:
[("name", ledger_name_json); ("config", Runtime_config.to_yojson config)] ;
let open Deferred.Or_error.Let_syntax in
let genesis_constants = Genesis_constants.compiled in
let proof_level =
Expand Down

0 comments on commit 28658cc

Please sign in to comment.