Skip to content

Commit

Permalink
[core] Support time units in option --log-file-rotate-interval
Browse files Browse the repository at this point in the history
  • Loading branch information
pajama-coder committed Dec 5, 2024
1 parent 1a19764 commit 7d98726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main-options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void MainOptions::parse(const std::list<std::string> &args) {
} else if (k == "--log-file-max-count") {
log_file_max_count = std::atoi(v.c_str());
} else if (k == "--log-file-rotate-interval") {
log_file_rotate_interval = std::atof(v.c_str());
log_file_rotate_interval = utils::get_seconds(v);
} else if (k == "--log-level") {
if (
utils::starts_with(v, "debug") && (
Expand Down

0 comments on commit 7d98726

Please sign in to comment.