vicc: debug incoming commands as well

This commit is contained in:
Frank Morgner
2022-05-06 11:53:05 +02:00
parent a982efd8c5
commit 1e5731fb0e

View File

@@ -605,6 +605,8 @@ class VirtualICC(object):
logging.warning("Expected %u bytes, but received only %u",
size, len(msg))
logging.info("Command APDU (%d bytes):\n %s\n", len(msg),
hexdump(msg, indent=2))
answer = self.os.execute(msg)
logging.info("Response APDU (%d bytes):\n %s\n", len(answer),
hexdump(answer, indent=2))