Create log files when running node with --initialize
This commit is contained in:
parent
d015478599
commit
c14ed4cc19
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue