add some debugging prints of incoming and outgoing packets

This might help to see what's being sent on the wire.