changes to logging, moving logs to debug and removing setnemposition logging that could spam output

This commit is contained in:
Blake Harnden 2019-09-13 13:13:59 -07:00
parent cc4a25cc21
commit fcee44775a
3 changed files with 2 additions and 27 deletions

View file

@ -128,7 +128,7 @@ class EmaneModel(WirelessModel):
:return: nothing
"""
logging.info("emane model(%s) has no post setup tasks", self.name)
logging.debug("emane model(%s) has no post setup tasks", self.name)
def update(self, moved, moved_netifs):
"""

View file

@ -190,17 +190,6 @@ class EmaneNode(EmaneNet):
logging.info("nemid for %s is unknown", ifname)
return
lat, lon, alt = self.session.location.getgeo(x, y, z)
logging.info(
"setnemposition %s (%s) x,y,z=(%d,%d,%s)(%.6f,%.6f,%.6f)",
ifname,
nemid,
x,
y,
z,
lat,
lon,
alt,
)
event = LocationEvent()
# altitude must be an integer or warning is printed
@ -232,18 +221,6 @@ class EmaneNode(EmaneNet):
continue
x, y, z = netif.node.getposition()
lat, lon, alt = self.session.location.getgeo(x, y, z)
logging.info(
"setnempositions %d %s (%s) x,y,z=(%d,%d,%s)(%.6f,%.6f,%.6f)",
i,
ifname,
nemid,
x,
y,
z,
lat,
lon,
alt,
)
# altitude must be an integer or warning is printed
alt = int(round(alt))
event.append(nemid, latitude=lat, longitude=lon, altitude=alt)

View file

@ -334,7 +334,7 @@ class CoreXmlWriter(object):
for model_name in all_configs:
config = all_configs[model_name]
logging.info(
logging.debug(
"writing emane config node(%s) model(%s)", node_id, model_name
)
if model_name == -1:
@ -414,8 +414,6 @@ class CoreXmlWriter(object):
# device node
elif isinstance(node, core.nodes.base.CoreNodeBase):
self.write_device(node)
else:
logging.error("unknown node: %s", node)
# add known links
links.extend(node.all_link_data(0))