diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-12 19:36:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-12 19:39:59 +0000 |
commit | 882db8e9d9414a4bc705a9252d4d2525b454eec3 (patch) | |
tree | ba5d9fbf74d3c5ce25721d39edf710069e2be5d2 /src/blockchain_utilities/blockchain_import.cpp | |
parent | tools: set requested log level (diff) | |
download | monero-882db8e9d9414a4bc705a9252d4d2525b454eec3.tar.xz |
tools: log to the correct file
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index f6f9826bb..d4fc93fb7 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -596,6 +596,8 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path, int main(int argc, char* argv[]) { + epee::string_tools::set_module_name_and_folder(argv[0]); + std::string default_db_type = "lmdb"; std::string default_db_engine_compiled = "blockchain_db"; @@ -722,7 +724,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("monero-blockchain-import", true); + mlog_configure(mlog_get_default_log_path("monero-blockchain-import.log"), true); mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str()); MINFO("Starting..."); |