Remove some more logging cruft. NFC.
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
import math
|
import math
|
||||||
import logging
|
|
||||||
|
|
||||||
|
|
||||||
def jump_threshold():
|
def jump_threshold():
|
||||||
@ -44,10 +43,6 @@ class Slipnode(object):
|
|||||||
def unclamped(self):
|
def unclamped(self):
|
||||||
return not self.clamped
|
return not self.clamped
|
||||||
|
|
||||||
def setConceptualDepth(self, depth):
|
|
||||||
logging.info('set depth to %s for %s', depth, self.name)
|
|
||||||
self.conceptualDepth = depth
|
|
||||||
|
|
||||||
def category(self):
|
def category(self):
|
||||||
if not len(self.categoryLinks):
|
if not len(self.categoryLinks):
|
||||||
return None
|
return None
|
||||||
@ -110,19 +105,13 @@ class Slipnode(object):
|
|||||||
If it does not exist return None
|
If it does not exist return None
|
||||||
"""
|
"""
|
||||||
slipnet = self.slipnet
|
slipnet = self.slipnet
|
||||||
result = None
|
|
||||||
if self == destination:
|
if self == destination:
|
||||||
result = slipnet.identity
|
return slipnet.identity
|
||||||
else:
|
else:
|
||||||
for link in self.outgoingLinks:
|
for link in self.outgoingLinks:
|
||||||
if link.destination == destination:
|
if link.destination == destination:
|
||||||
result = link.label
|
return link.label
|
||||||
break
|
return None
|
||||||
if result:
|
|
||||||
logging.info('Got bond: %s', result.name)
|
|
||||||
else:
|
|
||||||
logging.info('Got no bond')
|
|
||||||
return result
|
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.oldActivation = self.activation
|
self.oldActivation = self.activation
|
||||||
|
|||||||
Reference in New Issue
Block a user