aboutsummaryrefslogtreecommitdiff
path: root/libhal.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-01-31 20:12:37 -0500
committerRob Austein <sra@hactrn.net>2017-01-31 20:12:37 -0500
commit9ec81408c25207149d8b3bfcfc80faf1c8ff0811 (patch)
treed6759e2deaeb5821c4fbebec3dfc661fa07f8241 /libhal.py
parent31ce1c88f745c2946b3c0eb9986e0aaed164485c (diff)
Enable low-level debugging support in libhal.py.
Diffstat (limited to 'libhal.py')
-rw-r--r--libhal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhal.py b/libhal.py
index 93746e1..7e8cc6f 100644
--- a/libhal.py
+++ b/libhal.py
@@ -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