Skip to content

Commit

Permalink
Create log files when running node with --initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Jan 19, 2024
1 parent e2870fe commit fb2ad5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nano/node/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ std::error_code nano::handle_node_options (boost::program_options::variables_map

if (vm.count ("initialize"))
{
// TODO: --config flag overrides are not taken into account here
nano::nlogger::initialize (nano::log_config::daemon_default (), data_path);

auto node_flags = nano::inactive_node_flag_defaults ();
node_flags.read_only = false;
nano::update_flags (node_flags, vm);
Expand Down

0 comments on commit fb2ad5a

Please sign in to comment.