evolution-data-server r8805 - branches/gnome-2-22/servers/groupwise
- From: psankar svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8805 - branches/gnome-2-22/servers/groupwise
- Date: Mon, 19 May 2008 09:27:31 +0000 (UTC)
Author: psankar
Date: Mon May 19 09:27:31 2008
New Revision: 8805
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8805&view=rev
Log:
2008-05-14 Sankar P <psankar novell com>
* e-gw-connection.c: (e_gw_connection_init),
(e_gw_connection_send_message):
* soup-soap-response.c: (soup_soap_response_dump_response):
* soup-soap-response.h:
Enable GROUPWISE_DEBUG logs.
** Fix for bug #533058
Modified:
branches/gnome-2-22/servers/groupwise/ChangeLog
branches/gnome-2-22/servers/groupwise/e-gw-connection.c
branches/gnome-2-22/servers/groupwise/soup-soap-response.c
branches/gnome-2-22/servers/groupwise/soup-soap-response.h
Modified: branches/gnome-2-22/servers/groupwise/e-gw-connection.c
==============================================================================
--- branches/gnome-2-22/servers/groupwise/e-gw-connection.c (original)
+++ branches/gnome-2-22/servers/groupwise/e-gw-connection.c Mon May 19 09:27:31 2008
@@ -401,16 +401,18 @@
priv->book_list = NULL;
priv->opts = NULL;
- if (g_getenv ("GROUPWISE_DEBUG")) {
+ /* README: We do not use libsoup logger and use our own as we need formatted output etc. */
+ /*
+ if (g_getenv ("GROUPWISE_DEBUG")) {
if (atoi (g_getenv ("GROUPWISE_DEBUG")) == 1) {
SoupLogger *logger;
- logger = soup_logger_new (SOUP_LOGGER_LOG_BODY,
- SOUP_LOGGER_LOG_BODY);
+ logger = soup_logger_new (SOUP_LOGGER_LOG_BODY, -1);
soup_logger_attach (logger, priv->soup_session);
g_object_unref (logger);
}
}
+ */
}
GType
@@ -626,6 +628,15 @@
/* process response */
response = soup_soap_message_parse_response (msg);
+
+ if (g_getenv ("GROUPWISE_DEBUG")) {
+
+ /* README: The stdout can be replaced with Evolution's
+ Logging framework also */
+
+ soup_soap_response_dump_response (response, stdout);
+ g_print ("\n------\n");
+ }
return response;
}
Modified: branches/gnome-2-22/servers/groupwise/soup-soap-response.c
==============================================================================
--- branches/gnome-2-22/servers/groupwise/soup-soap-response.c (original)
+++ branches/gnome-2-22/servers/groupwise/soup-soap-response.c Mon May 19 09:27:31 2008
@@ -562,3 +562,19 @@
node = node->next;
return node;
}
+
+
+int
+soup_soap_response_dump_response (SoupSoapResponse *response, FILE *buffer)
+{
+ xmlChar *xmlbuff;
+ int buffersize, ret;
+
+ SoupSoapResponsePrivate *priv = SOUP_SOAP_RESPONSE_GET_PRIVATE (response);
+ xmlDocDumpFormatMemory(priv->xmldoc, &xmlbuff, &buffersize, 1);
+
+ ret = fputs ((char *) xmlbuff, buffer);
+ xmlFree (xmlbuff);
+
+ return ret;
+}
Modified: branches/gnome-2-22/servers/groupwise/soup-soap-response.h
==============================================================================
--- branches/gnome-2-22/servers/groupwise/soup-soap-response.h (original)
+++ branches/gnome-2-22/servers/groupwise/soup-soap-response.h Mon May 19 09:27:31 2008
@@ -61,6 +61,9 @@
SoupSoapParameter *from,
const char *name);
+int soup_soap_response_dump_response (SoupSoapResponse *response, FILE *buffer);
+
+
G_END_DECLS
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]