diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-09-25 16:54:08 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-09-25 16:54:08 +0200 |
commit | 32bbe62120cf458a265722f47bd5b6c830530b08 (patch) | |
tree | 4d325b3d7623a538fb4dcdbf6dced5073b0c17fb /src/daemon/main.cpp | |
parent | Merge pull request #2452 (diff) | |
parent | daemon, wallet: add --max-log-file-size option (diff) | |
download | monero-32bbe62120cf458a265722f47bd5b6c830530b08.tar.xz |
Merge pull request #2456
91def9a5 daemon, wallet: add --max-log-file-size option (selsta)
Diffstat (limited to 'src/daemon/main.cpp')
-rw-r--r-- | src/daemon/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp index 8f6d542b6..acc23b9f9 100644 --- a/src/daemon/main.cpp +++ b/src/daemon/main.cpp @@ -88,6 +88,7 @@ int main(int argc, char const * argv[]) bf::path default_log = default_data_dir / std::string(CRYPTONOTE_NAME ".log"); command_line::add_arg(core_settings, daemon_args::arg_log_file, default_log.string()); 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_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); @@ -207,7 +208,7 @@ int main(int argc, char const * argv[]) if (! vm["log-file"].defaulted()) 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); + 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()) |