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,8 +192,11 @@ def create_node_config(avd_name: str, browser_name: str, appium_host: str, appiu
def run(): def run():
"""Run app.""" """Run app."""
device = os.getenv('DEVICE', 'Nexus 5') device = os.getenv('DEVICE', 'Nexus 5')
device_id = os.getenv('DEVICE_ID', str(uuid.uuid4()))
logger.info('Device: {device}'.format(device=device)) 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) avd_name = '{device}_{version}'.format(device=device.replace(' ', '_').lower(), version=ANDROID_VERSION)
logger.info('AVD name: {avd}'.format(avd=avd_name)) logger.info('AVD name: {avd}'.format(avd=avd_name))