forked from lthn/blockchain
connectivity_tool updated
This commit is contained in:
parent
b7b4af436d
commit
f7048fd7af
1 changed files with 9 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ namespace
|
|||
const command_line::arg_descriptor<std::string> arg_get_info_flags = { "getinfo-flags-hex", "Set of bits for rpc-get-daemon-info", "", true };
|
||||
const command_line::arg_descriptor<int64_t> arg_set_peer_log_level = { "set-peer-log-level", "Set log level for remote peer", 0, true };
|
||||
const command_line::arg_descriptor<uint64_t> arg_download_peer_log = { "download-peer-log", "Download log from remote peer (starting offset)", 0, true };
|
||||
const command_line::arg_descriptor<bool> arg_do_consloe_log = { "do-console-log", "Tool generates debug console output(debug purposes)", "", true };
|
||||
}
|
||||
|
||||
typedef COMMAND_REQUEST_STAT_INFO_T<t_currency_protocol_handler<core>::stat_info> COMMAND_REQUEST_STAT_INFO;
|
||||
|
|
@ -1004,7 +1005,7 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
|
||||
string_tools::set_module_name_and_folder(argv[0]);
|
||||
log_space::get_set_log_detalisation_level(true, LOG_LEVEL_4);
|
||||
log_space::get_set_log_detalisation_level(true, LOG_LEVEL_2);
|
||||
|
||||
tools::signal_handler::install_fatal([](int sig_number, void* address) {
|
||||
LOG_ERROR("\n\nFATAL ERROR\nsig: " << sig_number << ", address: " << address);
|
||||
|
|
@ -1036,6 +1037,8 @@ int main(int argc, char* argv[])
|
|||
command_line::add_arg(desc_params, arg_log_journal_len);
|
||||
command_line::add_arg(desc_params, arg_set_peer_log_level);
|
||||
command_line::add_arg(desc_params, arg_download_peer_log);
|
||||
command_line::add_arg(desc_params, arg_do_consloe_log);
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1059,6 +1062,11 @@ int main(int argc, char* argv[])
|
|||
});
|
||||
if (!r)
|
||||
return 1;
|
||||
if (command_line::has_arg(vm, arg_do_consloe_log) && command_line::get_arg(vm, arg_do_consloe_log))
|
||||
{
|
||||
log_space::log_singletone::add_logger(LOGGER_CONSOLE, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
if (command_line::get_arg(vm, command_line::arg_version))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue