From bcf27f04892bed40cf422286c50ac5b47996d6ae Mon Sep 17 00:00:00 2001 From: Ankur Agarwal Date: Sat, 28 Jul 2018 23:20:06 +0530 Subject: [PATCH] Added logging --- src/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 521059e..a6b5df5 100644 --- a/src/app.py +++ b/src/app.py @@ -192,8 +192,11 @@ 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))