aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_import.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-12 18:35:54 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-12 18:48:39 +0000
commit142e5e1eb47812c04a7623de7a8821726a1f1789 (patch)
treea82b9711cff14e29e7470f7c8fc19fd39af8abcc /src/blockchain_utilities/blockchain_import.cpp
parentMerge pull request #1698 (diff)
downloadmonero-142e5e1eb47812c04a7623de7a8821726a1f1789.tar.xz
tools: set requested log level
also move a couple logs from INFO to DEBUG
Diffstat (limited to 'src/blockchain_utilities/blockchain_import.cpp')
-rw-r--r--src/blockchain_utilities/blockchain_import.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp
index 6f5520b59..f6f9826bb 100644
--- a/src/blockchain_utilities/blockchain_import.cpp
+++ b/src/blockchain_utilities/blockchain_import.cpp
@@ -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;