add random sleep log
This commit is contained in:
parent
36ef2b48db
commit
586193e60f
@ -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###"
|
||||
|
Loading…
Reference in New Issue
Block a user