aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
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/daemon
parentMerge pull request #2518 (diff)
downloadmonero-8f0cea6355ec38f58323953fb389b02cffc110ca.tar.xz
add a command_line function to check for defaulted options
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index acc23b9f9..21d20eeaf 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -205,13 +205,13 @@ int main(int argc, char const * argv[])
// absolute path
// relative path: relative to data_dir
bf::path log_file_path {data_dir / std::string(CRYPTONOTE_NAME ".log")};
- if (! vm["log-file"].defaulted())
+ if (!command_line::is_arg_defaulted(vm, daemon_args::arg_log_file))
log_file_path = command_line::get_arg(vm, daemon_args::arg_log_file);
log_file_path = bf::absolute(log_file_path, relative_path_base);
mlog_configure(log_file_path.string(), true, command_line::get_arg(vm, daemon_args::arg_max_log_file_size));
// Set log level
- if (!vm["log-level"].defaulted())
+ if (!command_line::is_arg_defaulted(vm, daemon_args::arg_log_level))
{
mlog_set_log(command_line::get_arg(vm, daemon_args::arg_log_level).c_str());
}