import logging
from time import sleep
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


def handle_line(line):
    logger.info(line)
    sleep(1)


def read_file(path, line_handler):
    with open(path, 'r') as fp:
        for line in fp:
            line_handler(line)


if __name__ == '__main__':
    while True:
        read_file('lines.txt', handle_line)
        logger.info('---')
        sleep(2)

5d913d9861b653947b5e42b987840b60d2935945
<mask token>


def handle_line(line):
    logger.info(line)
    sleep(1)


def read_file(path, line_handler):
    with open(path, 'r') as fp:
        for line in fp:
            line_handler(line)


<mask token>

<mask token>
logging.basicConfig(level=logging.INFO)
<mask token>


def handle_line(line):
    logger.info(line)
    sleep(1)


def read_file(path, line_handler):
    with open(path, 'r') as fp:
        for line in fp:
            line_handler(line)


if __name__ == '__main__':
    while True:
        read_file('lines.txt', handle_line)
        logger.info('---')
        sleep(2)

<mask token>
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


def handle_line(line):
    logger.info(line)
    sleep(1)


def read_file(path, line_handler):
    with open(path, 'r') as fp:
        for line in fp:
            line_handler(line)


if __name__ == '__main__':
    while True:
        read_file('lines.txt', handle_line)
        logger.info('---')
        sleep(2)

import logging
from time import sleep
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


def handle_line(line):
    logger.info(line)
    sleep(1)


def read_file(path, line_handler):
    with open(path, 'r') as fp:
        for line in fp:
            line_handler(line)


if __name__ == '__main__':
    while True:
        read_file('lines.txt', handle_line)
        logger.info('---')
        sleep(2)
