[controller] debug use __repr__()

This commit is contained in:
Nico Schottelius 2019-02-24 15:58:15 +01:00
parent 1fbbbbbd52
commit a420c7e6d8

View file

@ -143,7 +143,8 @@ class L2Controller(object):
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):
packet = Ether(str(pkg))