Skip to content
Snippets Groups Projects
Commit 0944f56e authored by Javier Diaz's avatar Javier Diaz
Browse files

debugging

parent 439212b7
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!259Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
......@@ -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
......
......@@ -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}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment