mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
tools: log to the correct file
This commit is contained in:
parent
142e5e1eb4
commit
882db8e9d9
@ -57,6 +57,8 @@ std::string join_set_strings(const std::unordered_set<std::string>& db_types_all
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
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_type = "lmdb";
|
||||||
|
|
||||||
std::unordered_set<std::string> db_types_all = cryptonote::blockchain_db_types;
|
std::unordered_set<std::string> db_types_all = cryptonote::blockchain_db_types;
|
||||||
@ -125,7 +127,7 @@ int main(int argc, char* argv[])
|
|||||||
log_level = command_line::get_arg(vm, arg_log_level);
|
log_level = command_line::get_arg(vm, arg_log_level);
|
||||||
block_stop = command_line::get_arg(vm, arg_block_stop);
|
block_stop = command_line::get_arg(vm, arg_block_stop);
|
||||||
|
|
||||||
mlog_configure("monero-blockchain-export", true);
|
mlog_configure(mlog_get_default_log_path("monero-blockchain-export.log"), true);
|
||||||
mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str());
|
mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str());
|
||||||
LOG_PRINT_L0("Starting...");
|
LOG_PRINT_L0("Starting...");
|
||||||
|
|
||||||
|
@ -596,6 +596,8 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path,
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
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_type = "lmdb";
|
||||||
std::string default_db_engine_compiled = "blockchain_db";
|
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);
|
m_config_folder = command_line::get_arg(vm, data_dir_arg);
|
||||||
db_arg_str = command_line::get_arg(vm, arg_database);
|
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());
|
mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str());
|
||||||
MINFO("Starting...");
|
MINFO("Starting...");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user