def log_end_loop(delay): if delay: logging.info("Waiting for {} seconds...".format(delay)) time.sleep(delay) logging.info("-" * 50)
Check for a delay and wait
Log a horizontal line for readability