[Xfce4-commits] [apps/xfce4-screenshooter] 12/14: only enable libsoup logging if DEBUG > 0
noreply at xfce.org
noreply at xfce.org
Mon Dec 15 22:35:06 CET 2014
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/xfce4-screenshooter.
commit a0943c5c81c463c4c455a713ec89b6c97dccba03
Author: Landry Breuil <landry at xfce.org>
Date: Mon Dec 15 22:32:58 2014 +0100
only enable libsoup logging if DEBUG > 0
---
lib/screenshooter-imgur.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/screenshooter-imgur.c b/lib/screenshooter-imgur.c
index 3fac9d4..f9854ac 100644
--- a/lib/screenshooter-imgur.c
+++ b/lib/screenshooter-imgur.c
@@ -57,7 +57,9 @@ imgur_upload_job (ScreenshooterJob *job, GValueArray *param_values, GError **err
gchar *online_file_name = NULL;
gchar* proxy_uri;
SoupURI *soup_proxy_uri;
+#if DEBUG > 0
SoupLogger *log;
+#endif
guint status;
SoupSession *session;
SoupMessage *msg;
@@ -86,8 +88,10 @@ imgur_upload_job (ScreenshooterJob *job, GValueArray *param_values, GError **err
image_path = g_value_get_string (g_value_array_get_nth (param_values, 0));
session = soup_session_sync_new ();
+#if DEBUG > 0
log = soup_logger_new (SOUP_LOGGER_LOG_HEADERS, -1);
soup_session_add_feature (session, (SoupSessionFeature *)log);
+#endif
/* Set the proxy URI if any */
proxy_uri = g_getenv ("http_proxy");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list