aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 18:38:46 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 18:38:46 +0200
commit1280ba4f5ba89f74f9394122dc8a91bb12876d00 (patch)
tree80100180b80b15c5649a3ff5e3985ccbada8a5a7 /src/daemon/main.cpp
parentMerge pull request #2587 (diff)
parentadd a command_line function to check for defaulted options (diff)
downloadmonero-1280ba4f5ba89f74f9394122dc8a91bb12876d00.tar.xz
Merge pull request #2589
8f0cea63 add a command_line function to check for defaulted options (moneromooo-monero)
Diffstat (limited to 'src/daemon/main.cpp')
-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 5d06f65dd..5d548f410 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());
}