aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-16 10:45:59 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-16 10:45:59 +0000
commita480bf6b1497eb1f5e9b27026d009663fea19642 (patch)
treeafc6aaa829a9f1ff1fa6d359e1fab6326c61d6ec /src
parentMerge pull request #1569 (diff)
downloadmonero-a480bf6b1497eb1f5e9b27026d009663fea19642.tar.xz
fixups in logging init calls, and add missing net context in a log
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_utilities/blockchain_export.cpp2
-rw-r--r--src/blockchain_utilities/blockchain_import.cpp2
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/blockchain_utilities/blockchain_export.cpp b/src/blockchain_utilities/blockchain_export.cpp
index 952855fa5..b4411fbba 100644
--- a/src/blockchain_utilities/blockchain_export.cpp
+++ b/src/blockchain_utilities/blockchain_export.cpp
@@ -125,7 +125,7 @@ int main(int argc, char* argv[])
log_level = command_line::get_arg(vm, arg_log_level);
block_stop = command_line::get_arg(vm, arg_block_stop);
- mlog_configure("", true);
+ mlog_configure("monero-blockchain-export", true);
LOG_PRINT_L0("Starting...");
bool opt_testnet = command_line::get_arg(vm, arg_testnet_on);
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp
index dc8d2d8fd..f21673b89 100644
--- a/src/blockchain_utilities/blockchain_import.cpp
+++ b/src/blockchain_utilities/blockchain_import.cpp
@@ -722,7 +722,7 @@ int main(int argc, char* argv[])
m_config_folder = command_line::get_arg(vm, data_dir_arg);
db_arg_str = command_line::get_arg(vm, arg_database);
- mlog_configure("", true);
+ mlog_configure("monero-blockchain-import", true);
MINFO("Starting...");
boost::filesystem::path fs_import_file_path;
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index 16a75c422..58388f8f7 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -914,7 +914,7 @@ namespace cryptonote
if (m_core.get_current_blockchain_height() > previous_height)
{
- MGINFO_YELLOW("Synced " << m_core.get_current_blockchain_height() << "/" << m_core.get_target_blockchain_height());
+ MGINFO_YELLOW(context << " Synced " << m_core.get_current_blockchain_height() << "/" << m_core.get_target_blockchain_height());
}
} // if not DISCARD BLOCK