def main_loop():

    signal.signal(signal.SIGINT, sig_handler)
    signal.signal(signal.SIGTERM, sig_handler)
    while watchlist:
        time.sleep(0.5)
        send_all()
        # If asked to run_once, exit now
        if config['run_once']:
            break
Periodicaly call sendlogs() for each group in watchlist.
dataset/ETHPy150Open openstack/bareon/contrib/fuel_bootstrap/files/trusty/usr/bin/send2syslog.py/main_loop