Merge pull request #2589

8f0cea63 add a command_line function to check for defaulted options (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-10-15 18:38:46 +02:00
commit 1280ba4f5b
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
5 changed files with 17 additions and 11 deletions

View file

@ -109,7 +109,7 @@ int main(int argc, char* argv[])
}
mlog_configure(mlog_get_default_log_path("monero-blockchain-export.log"), true);
if (!vm["log-level"].defaulted())
if (!command_line::is_arg_defaulted(vm, arg_log_level))
mlog_set_log(command_line::get_arg(vm, arg_log_level).c_str());
else
mlog_set_log(std::string(std::to_string(log_level) + ",bcutil:INFO").c_str());