Added logging

This commit is contained in:
Ankur Agarwal 2018-07-28 23:20:06 +05:30 committed by GitHub
parent 972445a8bc
commit bcf27f0489
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,9 +192,12 @@ def create_node_config(avd_name: str, browser_name: str, appium_host: str, appiu
def run():
"""Run app."""
device = os.getenv('DEVICE', 'Nexus 5')
device_id = os.getenv('DEVICE_ID', str(uuid.uuid4()))
logger.info('Device: {device}'.format(device=device))
device_id = os.getenv('DEVICE_ID', str(uuid.uuid4()))
logger.info('Device Id: {device_id}'.format(device_id=device_id))
avd_name = '{device}_{version}'.format(device=device.replace(' ', '_').lower(), version=ANDROID_VERSION)
logger.info('AVD name: {avd}'.format(avd=avd_name))
is_first_run = not is_initialized()