diff options
author | Rob Austein <sra@hactrn.net> | 2017-01-31 20:12:37 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-01-31 20:12:37 -0500 |
commit | 9ec81408c25207149d8b3bfcfc80faf1c8ff0811 (patch) | |
tree | d6759e2deaeb5821c4fbebec3dfc661fa07f8241 /libhal.py | |
parent | 31ce1c88f745c2946b3c0eb9986e0aaed164485c (diff) |
Enable low-level debugging support in libhal.py.
Diffstat (limited to 'libhal.py')
-rw-r--r-- | libhal.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -417,7 +417,7 @@ class HSM(object): def _send(self, msg): # Expects an xdrlib.Packer msg = slip_encode(msg.get_buffer()) - #logger.debug("send: %s", ":".join("{:02x}".format(ord(c)) for c in msg)) + logger.debug("send: %s", ":".join("{:02x}".format(ord(c)) for c in msg)) self.socket.sendall(msg) def _recv(self, code): # Returns an xdrlib.Unpacker @@ -428,7 +428,7 @@ class HSM(object): if msg[-1] == "": raise HAL_ERROR_RPC_TRANSPORT() msg.append(self.sockfile.read(1)) - #logger.debug("recv: %s", ":".join("{:02x}".format(ord(c)) for c in msg)) + logger.debug("recv: %s", ":".join("{:02x}".format(ord(c)) for c in msg)) msg = slip_decode("".join(msg)) if not msg: continue |