[geary/mjog/web-extension-debug-fix] Fix web extension debug logging



commit ef7b11717af47f6f0bc5dda42304bbc75d14502b
Author: Michael Gratton <mike vee net>
Date:   Thu Oct 10 21:25:17 2019 +1100

    Fix web extension debug logging
    
    Per the client process, need to set the default writer.

 src/client/web-process/web-process-extension.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/client/web-process/web-process-extension.vala 
b/src/client/web-process/web-process-extension.vala
index 1644aca2..2a2266f6 100644
--- a/src/client/web-process/web-process-extension.vala
+++ b/src/client/web-process/web-process-extension.vala
@@ -13,8 +13,10 @@ public void webkit_web_extension_initialize_with_user_data(WebKit.WebExtension e
     bool logging_enabled = data.get_boolean();
 
     Geary.Logging.init();
-    if (logging_enabled)
+    GLib.Log.set_writer_func(Geary.Logging.default_log_writer);
+    if (logging_enabled) {
         Geary.Logging.log_to(stdout);
+    }
 
     debug("Initialising...");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]