aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_args.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-06 10:55:36 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-06 10:56:18 +0100
commit8f0cea6355ec38f58323953fb389b02cffc110ca (patch)
tree17fa740e4f46d411ee125c5c74c5e1163cf52cd6 /src/wallet/wallet_args.cpp
parentMerge pull request #2518 (diff)
downloadmonero-8f0cea6355ec38f58323953fb389b02cffc110ca.tar.xz
add a command_line function to check for defaulted options
Diffstat (limited to 'src/wallet/wallet_args.cpp')
-rw-r--r--src/wallet/wallet_args.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/wallet_args.cpp b/src/wallet/wallet_args.cpp
index 22cfcc269..5f2361805 100644
--- a/src/wallet/wallet_args.cpp
+++ b/src/wallet/wallet_args.cpp
@@ -154,12 +154,12 @@ namespace wallet_args
return boost::none;
std::string log_path;
- if (!vm["log-file"].defaulted())
+ if (!command_line::is_arg_defaulted(vm, arg_log_file))
log_path = command_line::get_arg(vm, arg_log_file);
else
log_path = mlog_get_default_log_path(default_log_name);
mlog_configure(log_path, log_to_console, command_line::get_arg(vm, arg_max_log_file_size));
- 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());
}
@@ -169,7 +169,7 @@ namespace wallet_args
tools::scoped_message_writer(epee::console_color_white, true) << "Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")";
- if (!vm["log-level"].defaulted())
+ if (!command_line::is_arg_defaulted(vm, arg_log_level))
MINFO("Setting log level = " << command_line::get_arg(vm, arg_log_level));
else
MINFO("Setting log levels = " << getenv("MONERO_LOGS"));