[shotwell/wip/flickr-description: 7/7] fixup! Add soup logger



commit ebd38bead03a791385d8c2aa00e75c1a4bc0e211
Author: Jens Georg <mail jensge org>
Date:   Thu Mar 12 20:40:46 2020 +0100

    fixup! Add soup logger

 plugins/common/RESTSupport.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala
index 6361a8af..cb050189 100644
--- a/plugins/common/RESTSupport.vala
+++ b/plugins/common/RESTSupport.vala
@@ -34,7 +34,9 @@ public abstract class Session {
     protected Session(string? endpoint_url = null) {
         this.endpoint_url = endpoint_url;
         soup_session = new Soup.Session ();
-        soup_session.add_feature (new Soup.Logger (Soup.LoggerLogLevel.BODY, -1));
+        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]