Beispiel #1
0
def save(config_dir, payload):
    from azure.cli.telemetry.util import should_upload
    from azure.cli.telemetry.components.telemetry_logging import get_logger

    if save_payload(config_dir, payload) and should_upload(config_dir):
        logger = get_logger('main')
        logger.info('Begin creating telemetry upload process.')
        _start(config_dir)
        logger.info('Finish creating telemetry upload process.')
Beispiel #2
0
def save(config_dir, payload):
    from azure.cli.telemetry.util import should_upload
    from azure.cli.telemetry.components.telemetry_logging import get_logger

    if save_payload(config_dir, payload) and should_upload(config_dir):
        logger = get_logger('main')
        logger.info('Begin creating telemetry upload process.')
        _start(config_dir)
        logger.info('Finish creating telemetry upload process.')