changeset 26531:345165fc51b6

BOSH: Print out the received data (similar to the standard XMPP method, except it also contains the <body/> wrapper)
author Paul Aurich <paul@darkrain42.org>
date Sat, 04 Apr 2009 04:54:56 +0000
parents d4af753e0e33
children e344e2815454
files libpurple/protocols/jabber/bosh.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/bosh.c	Sat Apr 04 04:34:57 2009 +0000
+++ b/libpurple/protocols/jabber/bosh.c	Sat Apr 04 04:54:56 2009 +0000
@@ -438,10 +438,11 @@
 
 	if (conn->receive_cb) {
 		xmlnode *node = xmlnode_from_str(data, len);
+
+		purple_debug_info("jabber", "RecvBOSH %s(%d): %s\n",
+		                  conn->ssl ? "(ssl)" : "", len, data);
+
 		if (node) {
-			char *txt = xmlnode_to_formatted_str(node, NULL);
-			printf("\nhttp_received_cb\n%s\n", txt);
-			g_free(txt);
 			conn->receive_cb(conn, node);
 			xmlnode_free(node);
 		} else {