[shotwell/wip/flickr-description: 1/5] Add soup logger
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/flickr-description: 1/5] Add soup logger
- Date: Thu, 12 Mar 2020 19:43:29 +0000 (UTC)
commit 75d552ae93a8ea662e65b7c7b0188ad470c1f1b4
Author: Jens Georg <mail jensge org>
Date: Wed Mar 11 22:59:36 2020 +0100
Add soup logger
plugins/common/RESTSupport.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala
index 9966b85c..19175256 100644
--- a/plugins/common/RESTSupport.vala
+++ b/plugins/common/RESTSupport.vala
@@ -34,6 +34,9 @@ public abstract class Session {
protected Session(string? endpoint_url = null) {
this.endpoint_url = endpoint_url;
soup_session = new Soup.Session ();
+ if (Environment.get_variable("SHOTWELL_SOUP_LOG") != null) {
+ soup_session.add_feature (new Soup.Logger (Soup.LoggerLogLevel.BODY, -1));
+ }
this.soup_session.ssl_use_system_ca_file = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]