mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
Merge pull request #3516 from certbot/increase-log-count
Include log retention count to 1000.
This commit is contained in:
+1
-1
@@ -601,7 +601,7 @@ def setup_log_file_handler(config, logfile, fmt):
|
||||
log_file_path = os.path.join(config.logs_dir, logfile)
|
||||
try:
|
||||
handler = logging.handlers.RotatingFileHandler(
|
||||
log_file_path, maxBytes=2 ** 20, backupCount=10)
|
||||
log_file_path, maxBytes=2 ** 20, backupCount=1000)
|
||||
except IOError as error:
|
||||
raise errors.Error(_PERM_ERR_FMT.format(error))
|
||||
# rotate on each invocation, rollover only possible when maxBytes
|
||||
|
||||
Reference in New Issue
Block a user