diff --git a/certbot/main.py b/certbot/main.py index 42ea35bb5..2301c7c43 100644 --- a/certbot/main.py +++ b/certbot/main.py @@ -1250,8 +1250,9 @@ def renew(config, unused_plugins): # users all pick the same time for renewals. This delay precedes # running any hooks, so that side effects of the hooks (such as # shutting down a web service) aren't prolonged unnecessarily. - logger.info("Non-interactive renewal: delaying for a random time") - time.sleep(random.randint(1, 60*8)) + sleep_time = random.randint(1, 60*8) + logger.info("Non-interactive renewal: random delay of %s seconds", sleep_time) + time.sleep(sleep_time) try: renewal.handle_renewal_request(config)