[gthumb] [picasaweb] disable soup logger by default
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb] [picasaweb] disable soup logger by default
- Date: Mon, 1 Feb 2010 11:55:17 +0000 (UTC)
commit d2b1c365df43a380767a2e7da0a342c7e73ced16
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Feb 1 12:54:52 2010 +0100
[picasaweb] disable soup logger by default
extensions/picasaweb/google-connection.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/extensions/picasaweb/google-connection.c b/extensions/picasaweb/google-connection.c
index 7e449ff..17b7916 100644
--- a/extensions/picasaweb/google-connection.c
+++ b/extensions/picasaweb/google-connection.c
@@ -26,8 +26,8 @@
#include <gthumb.h>
#include "google-connection.h"
-
-#define SOUP_LOG_LEVEL SOUP_LOGGER_LOG_NONE
+#undef DEBUG_GOOGLE_CONNECTION
+#define SOUP_LOG_LEVEL SOUP_LOGGER_LOG_BODY
#define GTHUMB_SOURCE ("GNOME-" PACKAGE "-" VERSION)
@@ -334,18 +334,22 @@ google_connection_connect (GoogleConnection *self,
g_return_if_fail (password != NULL);
if (self->priv->session == NULL) {
- SoupLogger *logger;
-
self->priv->session = soup_session_async_new_with_options (
#ifdef HAVE_LIBSOUP_GNOME
SOUP_SESSION_ADD_FEATURE_BY_TYPE, SOUP_TYPE_PROXY_RESOLVER_GNOME,
#endif
NULL);
- logger = soup_logger_new (SOUP_LOG_LEVEL, -1);
- soup_session_add_feature (self->priv->session, SOUP_SESSION_FEATURE (logger));
+#ifdef DEBUG_GOOGLE_CONNECTION
+ {
+ SoupLogger *logger;
+
+ logger = soup_logger_new (SOUP_LOG_LEVEL, -1);
+ soup_session_add_feature (self->priv->session, SOUP_SESSION_FEATURE (logger));
- g_object_unref (logger);
+ g_object_unref (logger);
+ }
+#endif
}
_g_object_unref (self->priv->cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]