From 586193e60fe81f96005406e1610ce4c1be833d9c Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 24 Nov 2024 04:24:54 +0300 Subject: [PATCH] add random sleep log --- checker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/checker.py b/checker.py index a24430a..badfa43 100644 --- a/checker.py +++ b/checker.py @@ -139,7 +139,9 @@ if __name__ == "__main__": ch.setFormatter(formatter) logger.addHandler(ch) - time.sleep(random.randint(1, 600)) + random_sleep = random.randint(1, 600) + logger.info(f"Sleeping for {random_sleep} seconds") + time.sleep(random_sleep) GRIST_SERVER = "###GRIST_SERVER###" GRIST_DOC_ID = "###GRIST_DOC_ID###"