[controller] debug use __repr__()

This commit is contained in:
Nico Schottelius 2019-02-24 15:58:15 +01:00
parent 1fbbbbbd52
commit a420c7e6d8
1 changed files with 2 additions and 1 deletions

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))