Skip to content

Commit

Permalink
change type of max_logfile_num from int32 to uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhg committed Apr 7, 2022
1 parent b608463 commit 0f7ffec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/glog/logging.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ DECLARE_string(vmodule); // also in vlog_is_on.cc
DECLARE_uint32(max_log_size);

// Set maximum log file num after rolling
DECLARE_int32(max_logfile_num);
DECLARE_uint32(max_logfile_num);

// Set log file rolling policy, support size-based and time-based
// The available values are size, day and hour
Expand Down
2 changes: 1 addition & 1 deletion src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ GLOG_DEFINE_string(log_rolling_policy, "size",
" The available values are size, day and hour, if use time-based policy,"
" the maximum log file size also control by max_log_size");

GLOG_DEFINE_int32(max_logfile_num, 10,
GLOG_DEFINE_uint32(max_logfile_num, 10,
"maximum history log file num after rolling");

GLOG_DEFINE_bool(stop_logging_if_full_disk, false,
Expand Down

0 comments on commit 0f7ffec

Please sign in to comment.