mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 20:06:32 +02:00
tools: set requested log level
also move a couple logs from INFO to DEBUG
This commit is contained in:
parent
cb54eeaa31
commit
142e5e1eb4
@ -126,6 +126,7 @@ int main(int argc, char* argv[])
|
||||
block_stop = command_line::get_arg(vm, arg_block_stop);
|
||||
|
||||
mlog_configure("monero-blockchain-export", true);
|
||||
mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str());
|
||||
LOG_PRINT_L0("Starting...");
|
||||
|
||||
bool opt_testnet = command_line::get_arg(vm, arg_testnet_on);
|
||||
|
@ -374,7 +374,7 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path,
|
||||
return 2;
|
||||
}
|
||||
bytes_read += chunk_size;
|
||||
MINFO("Total bytes read: " << bytes_read);
|
||||
MDEBUG("Total bytes read: " << bytes_read);
|
||||
|
||||
if (h + NUM_BLOCKS_PER_CHUNK < start_height + 1)
|
||||
{
|
||||
@ -723,6 +723,7 @@ int main(int argc, char* argv[])
|
||||
db_arg_str = command_line::get_arg(vm, arg_database);
|
||||
|
||||
mlog_configure("monero-blockchain-import", true);
|
||||
mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str());
|
||||
MINFO("Starting...");
|
||||
|
||||
boost::filesystem::path fs_import_file_path;
|
||||
|
@ -458,7 +458,7 @@ uint64_t BootstrapFile::count_blocks(const std::string& import_file_path)
|
||||
bytes_read += chunk_size;
|
||||
|
||||
// std::cout << refresh_string;
|
||||
MINFO("Number bytes scanned: " << bytes_read);
|
||||
MDEBUG("Number bytes scanned: " << bytes_read);
|
||||
}
|
||||
|
||||
import_file.close();
|
||||
|
Loading…
Reference in New Issue
Block a user