summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-05-15 14:35:32 +0100
committerRoss Burton <ross@linux.intel.com>2009-05-15 14:35:32 +0100
commite49d8730bfb277af59732822e78535ef37e29b6c (patch)
tree57ade579a9a92b596950f8f88b6873a30435a4b1
parent9a55fe0639c6d41ff00e914a61b072f0d98f0b4a (diff)
If PROXY debugging is on, turn on full soup debugging
-rw-r--r--rest/rest-proxy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index 6de0871..54f9e2f 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -162,6 +162,8 @@ rest_proxy_class_init (RestProxyClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
RestProxyClass *proxy_class = REST_PROXY_CLASS (klass);
+ _rest_setup_debugging ();
+
g_type_class_add_private (klass, sizeof (RestProxyPrivate));
object_class->get_property = rest_proxy_get_property;
@@ -211,6 +213,11 @@ rest_proxy_init (RestProxy *self)
soup_session_add_feature_by_type (priv->session,
SOUP_TYPE_PROXY_RESOLVER_GNOME);
#endif
+
+ if (REST_DEBUG_ENABLED(PROXY)) {
+ soup_session_add_feature
+ (priv->session, (SoupSessionFeature*)soup_logger_new (SOUP_LOGGER_LOG_BODY, 0));
+ }
}
/**