def run():
    # add file handler to logger
    prepare_logger(logger, file_name='statsenderd.log')

    logger.info("Starting standalone stats sender...")
    try:
        while True:
            StatsSender().send_stats_once()
    except (KeyboardInterrupt, __HOLE__):
        logger.info("Stopping standalone stats sender...")
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/statistics/statsenderd.py/run