Added packet diagnostics to 1.7 protocol.

When the packet is mis-interpreted, a log message is output about the packet type and lengths.