Commit 0944f56e authored by Javier Diaz's avatar Javier Diaz
Browse files

debugging

parent 439212b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ class DltRecordSender:
            topology_id,dlt_record = self.dlt_record_uuid_to_data[dlt_record_uuid]
            if isinstance(dlt_record, Device):
                device_id = self.context_client.SetDevice(dlt_record) # Se retriggerea el Evento.
                LOGGER.debug('DEVICE ID: ({:s})'.format(str(dlt_record)))
                LOGGER.debug('DEVICE_ID: ({:s})'.format(str(dlt_record)))
                if self.dlt_connector_client is None: continue
                dlt_device_id = DltDeviceId()
                dlt_device_id.topology_id.CopyFrom(topology_id)     # pylint: disable=no-member
+2 −1
Original line number Diff line number Diff line
@@ -150,7 +150,8 @@ class DLTRecorder(threading.Thread):
        device = self.context_client.GetDevice(device_id)
        topology_id = self.find_topology_for_device(device_id)
        if topology_id:
            LOGGER.debug('DEVICE INFO({:s}), DEVICE ID ({:s})'.format(grpc_message_to_json_string(device)), (str(device_id)))
            LOGGER.debug('DEVICE_INFO({:s}), DEVICE_ID ({:s})'.format(grpc_message_to_json_string(device), str(device_id)))

            dlt_record_sender.add_device(topology_id, device)
        else:
            LOGGER.warning(f"Topology not found for device {device_id.device_uuid.uuid}")