aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-20 14:19:30 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-20 14:19:30 -0500
commit51cdd76bbda86c80f9153f276c5f6db85372aaa4 (patch)
tree642c7409aeaef02c7d72ee59198cf8e7ee559c64 /src/daemon/main.cpp
parentMerge pull request #3896 (diff)
parentmlog: --max-log-files to set the max number of rotated log files (diff)
downloadmonero-51cdd76bbda86c80f9153f276c5f6db85372aaa4.tar.xz
Merge pull request #3897
63d0ab0 mlog: --max-log-files to set the max number of rotated log files (stoffu)
Diffstat (limited to 'src/daemon/main.cpp')
-rw-r--r--src/daemon/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index fd70c367c..88bb1fd0c 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -84,6 +84,7 @@ int main(int argc, char const * argv[])
command_line::add_arg(core_settings, daemon_args::arg_log_file);
command_line::add_arg(core_settings, daemon_args::arg_log_level);
command_line::add_arg(core_settings, daemon_args::arg_max_log_file_size);
+ command_line::add_arg(core_settings, daemon_args::arg_max_log_files);
command_line::add_arg(core_settings, daemon_args::arg_max_concurrency);
command_line::add_arg(core_settings, daemon_args::arg_zmq_rpc_bind_ip);
command_line::add_arg(core_settings, daemon_args::arg_zmq_rpc_bind_port);
@@ -203,7 +204,7 @@ int main(int argc, char const * argv[])
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));
+ mlog_configure(log_file_path.string(), true, command_line::get_arg(vm, daemon_args::arg_max_log_file_size), command_line::get_arg(vm, daemon_args::arg_max_log_files));
// Set log level
if (!command_line::is_arg_defaulted(vm, daemon_args::arg_log_level))