Commits

Ivan Vučica  committed e0d9ecc

Logging every incoming and outgoing packet. Prefixed with << and >> for easier filtering in zxmppConsole.

  • Participants
  • Parent commits 70c6eed

Comments (0)

Files changed (2)

File zxmpp_packet.js

 	
 	this.send = function zxmppPacket_send(send_style)
 	{
-		tthis = this;
+		var tthis = this;
+		zxmppConsole.log("<< " + tthis.zxmpp.util.serializedXML(tthis.xml));
 		// queue for wire
 		// FIXME ignores send_style!
 		if(send_style=="hold")

File zxmpp_stream.js

 			{
 				return;
 			}
+			zxmppConsole.log(">> " + this.zxmpp.util.serializedXML(responseXML));
 
 			this.zxmpp.notifyPacket(packet);