log_end_loop

Function

def log_end_loop(delay):
    if delay:
        logging.info("Waiting for {} seconds...".format(delay))
        time.sleep(delay)
    logging.info("-" * 50)

Description

  • Check for a delay and wait

  • Log a horizontal line for readability