diff --git a/certbot/main.py b/certbot/main.py index 511046df0..a5448a005 100644 --- a/certbot/main.py +++ b/certbot/main.py @@ -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