removed logs from emane network all_link_data

This commit is contained in:
Blake Harnden 2020-05-29 14:42:38 -07:00
parent 183ffda570
commit b88df84d62

View file

@ -239,11 +239,9 @@ class EmaneNet(CoreNetworkBase):
self.session.emane.service.publish(0, event)
def all_link_data(self, flags: MessageFlags = MessageFlags.NONE) -> List[LinkData]:
logging.info("gathering emane links: %s", self.id)
links = super().all_link_data(flags)
# gather current emane links
nem_ids = set(self.nemidmap.values())
logging.info("known nems: %s", nem_ids)
emane_manager = self.session.emane
emane_links = emane_manager.link_monitor.links
considered = set()
@ -252,15 +250,12 @@ class EmaneNet(CoreNetworkBase):
if considered_key in considered:
continue
considered.add(considered_key)
logging.info("considering emane link: %s", considered_key)
nem1, nem2 = considered_key
# ignore links not related to this node
if nem1 not in nem_ids and nem2 not in nem_ids:
logging.info("ignore emane link not within network: %s", (nem1, nem2))
continue
# ignore incomplete links
if (nem2, nem1) not in emane_links:
logging.info("ignore emane link not complete: %s", (nem1, nem2))
continue
link = emane_manager.get_nem_link(nem1, nem2)
if link: