Add debug logging to client receive cycle