[geary/mjog/558-webkit-shared-process-redux: 42/47] GearyWebExtension: Trivial code clean up




commit 4c169e47987484d6adb064e508a3e3cf7490ab1e
Author: Michael Gratton <mike vee net>
Date:   Fri Aug 28 12:01:22 2020 +1000

    GearyWebExtension: Trivial code clean up

 src/client/web-process/web-process-extension.vala | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/client/web-process/web-process-extension.vala 
b/src/client/web-process/web-process-extension.vala
index 6eed7746c..6785903e0 100644
--- a/src/client/web-process/web-process-extension.vala
+++ b/src/client/web-process/web-process-extension.vala
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Michael Gratton <mike vee net>
+ * Copyright © 2016-2020 Michael Gratton <mike vee net>
  *
  * This software is licensed under the GNU Lesser General Public License
  * (version 2.1 or later). See the COPYING file in this distribution.
@@ -13,9 +13,9 @@ public void webkit_web_extension_initialize_with_user_data(WebKit.WebExtension e
     bool logging_enabled = data.get_boolean();
 
     Geary.Logging.init();
-    GLib.Log.set_writer_func(Geary.Logging.default_log_writer);
     if (logging_enabled) {
-        Geary.Logging.log_to(stdout);
+        GLib.Log.set_writer_func(Geary.Logging.default_log_writer);
+        Geary.Logging.log_to(GLib.stdout);
     }
 
     debug("Initialising...");
@@ -50,7 +50,6 @@ public class GearyWebExtension : Object {
         extension.page_created.connect(on_page_created);
     }
 
-    // XXX Conditionally enable while we still depend on WK2 <2.12
     private void on_console_message(WebKit.WebPage page,
                                     WebKit.ConsoleMessage message) {
         string source = message.get_source_id();


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