From 83a093021197330590921c9fea0907225b56b2e0 Mon Sep 17 00:00:00 2001 From: Moshe Shahar Date: Thu, 15 Oct 2020 12:36:56 +0300 Subject: [PATCH] Log allocated device name and ID To enable tracing badly devices --- pelion_test_lib/tools/external_conn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pelion_test_lib/tools/external_conn.py b/pelion_test_lib/tools/external_conn.py index b6eda62..69adc24 100644 --- a/pelion_test_lib/tools/external_conn.py +++ b/pelion_test_lib/tools/external_conn.py @@ -63,6 +63,7 @@ def __initialize_resource(self): self.resource = self.client.allocate(description, expiration_time, allocation_timeout, local_allocation) if self.resource: + log.info('Allocated device {}, id: {}'.format(self.resource.info().get('name', None), self.resource.resource_id)) self.resource.open_connection(self.remote_module.SerialParameters(baudrate=configs['baudrate'])) try: self.resource.on_release(on_release)