Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Aug 5, 2024
1 parent b57e93c commit d73efd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nano/node/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ std::error_code nano::handle_node_options (boost::program_options::variables_map
}
else if (vm.count ("migrate_database_lmdb_to_rocksdb"))
{
nano::logger::initialize (nano::log_config::daemon_default (), data_path);

auto data_path = vm.count ("data_path") ? std::filesystem::path (vm["data_path"].as<std::string> ()) : nano::working_path ();
auto node_flags = nano::inactive_node_flag_defaults ();
node_flags.config_overrides.push_back ("node.rocksdb.enable=false");
Expand Down
1 change: 0 additions & 1 deletion nano/secure/ledger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,6 @@ uint64_t nano::ledger::pruning_action (secure::write_transaction & transaction_a
bool nano::ledger::migrate_lmdb_to_rocksdb (std::filesystem::path const & data_path_a) const
{
nano::logger logger;
nano::logger::initialize (nano::log_config::daemon_default (), data_path_a);

logger.info (nano::log::type::ledger, "Migrating LMDB database to RocksDB. This will take a while...");

Expand Down

0 comments on commit d73efd3

Please sign in to comment.