Remove debug logs

This commit is contained in:
Milos Gajdos 2019-09-06 15:12:23 +01:00
parent dafbacbdcb
commit 7971b1b7f9
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -352,7 +352,6 @@ func (n *network) processNetChan(client transport.Client, listener tunnel.Listen
// only add the neighbour if it is NOT already in node's list of neighbours // only add the neighbour if it is NOT already in node's list of neighbours
_, exists := n.neighbours[pbNetNeighbour.Node.Id] _, exists := n.neighbours[pbNetNeighbour.Node.Id]
if !exists { if !exists {
log.Debugf("Network neighbour message node exists: %s", pbNetNeighbour.Node.Id)
n.neighbours[pbNetNeighbour.Node.Id] = &node{ n.neighbours[pbNetNeighbour.Node.Id] = &node{
id: pbNetNeighbour.Node.Id, id: pbNetNeighbour.Node.Id,
address: pbNetNeighbour.Node.Address, address: pbNetNeighbour.Node.Address,
@ -697,10 +696,9 @@ func (n *network) processCtrlChan(client transport.Client, listener tunnel.Liste
} }
// set the route metric // set the route metric
n.setRouteMetric(&route) n.setRouteMetric(&route)
log.Debugf("Network node %s metric: %d", route.Router, route.Metric)
// throw away metric bigger than 1000 // throw away metric bigger than 1000
if route.Metric > 1000 { if route.Metric > 1000 {
log.Debugf("Network dropping node: %s", route.Router) log.Debugf("Network route metric %d dropping node: %s", route.Metric, route.Router)
continue continue
} }
// create router event // create router event
@ -937,7 +935,7 @@ func (n *network) Nodes() []Node {
var nodes []Node var nodes []Node
// collect all the nodes and return them // collect all the nodes and return them
for id, node := range visited { for _, node := range visited {
nodes = append(nodes, node) nodes = append(nodes, node)
} }