aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2017-09-17 04:42:45 +0200
committerselsta <selsta@sent.at>2017-09-17 04:42:45 +0200
commit91def9a59b7b6e252dba4a0a4dd559ad81be2b0d (patch)
tree53176070df785f0b14b1ed845638f7dc84e744ec /src/daemon/main.cpp
parentMerge pull request #2378 (diff)
downloadmonero-91def9a59b7b6e252dba4a0a4dd559ad81be2b0d.tar.xz
daemon, wallet: add --max-log-file-size option
Diffstat (limited to '')
-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 44d2dae43..63028f8ca 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);
daemonizer::init_options(hidden_options, visible_options);
@@ -204,7 +205,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())