[geary/mjog/web-extension-debug-fix] Fix web extension debug logging
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/web-extension-debug-fix] Fix web extension debug logging
- Date: Thu, 10 Oct 2019 10:26:21 +0000 (UTC)
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]