From 7ccb29b1d2fcb4576803f6140633e3984a69df95 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Tue, 16 Oct 2018 14:38:43 -0700 Subject: [PATCH] Log specific duration of random sleep --- certbot/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)