Improved APDU header logging