[shotwell] Add soup logger
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Add soup logger
- Date: Sat, 14 Mar 2020 06:55:35 +0000 (UTC)
commit 345f63733b16b128251d38995befdd3bb29da1c5
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]