[controller] debug use __repr__()
This commit is contained in:
parent
1fbbbbbd52
commit
a420c7e6d8
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@ class L2Controller(object):
|
||||||
|
|
||||||
|
|
||||||
def debug_print_pkg(self, pkg, msg="INCOMING"):
|
def debug_print_pkg(self, pkg, msg="INCOMING"):
|
||||||
log.debug("{}: {}".format(msg, self.debug_format_pkg(pkg)))
|
#log.debug("{}: {}".format(msg, self.debug_format_pkg(pkg)))
|
||||||
|
log.debug("{}: {}".format(msg, pkg.__repr__()))
|
||||||
|
|
||||||
def debug_format_pkg(self, pkg):
|
def debug_format_pkg(self, pkg):
|
||||||
packet = Ether(str(pkg))
|
packet = Ether(str(pkg))
|
||||||
|
|
Loading…
Reference in a new issue