Skip to content

Commit

Permalink
Merge pull request #263 from sk2/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sk2 committed Nov 7, 2014
2 parents 3101dcc + 820759d commit f7e8c03
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions autonetkit/anm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ def __init__(self, anm, overlay_id):

self._overlay_id = overlay_id
self._anm = anm
logger = logging.getLogger('ANK')
logstring = 'Overlay: %s' % str(overlay_id)
logger = CustomAdapter(logger, {'item': logstring})
#logger = logging.getLogger('ANK')
#logstring = 'Overlay: %s' % str(overlay_id)
#logger = CustomAdapter(logger, {'item': logstring})
#object.__setattr__(self, 'log', logger)
#self.init_logging("graph")
logger = log
object.__setattr__(self, 'log', logger)
self.init_logging("graph")

Expand Down Expand Up @@ -287,6 +290,7 @@ def node_label(self, node):

def has_edge(self, edge_to_find, dst_to_find=None,):
"""Tests if edge in graph
>>> anm = autonetkit.topos.house()
>>> g_phy = anm['phy']
>>> r1 = g_phy.node("r1")
Expand Down

0 comments on commit f7e8c03

Please sign in to comment.