[geary/wip/789271-mailfence-contact-office-compat: 3/3] Fix logging not working in the mailer when enabled



commit d4cadd892f9111483936ee662fa47eefb1d3701a
Author: Michael Gratton <mike vee net>
Date:   Fri Feb 8 16:04:50 2019 +1100

    Fix logging not working in the mailer when enabled

 src/mailer/main.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/mailer/main.vala b/src/mailer/main.vala
index 29748eca..bfd97277 100644
--- a/src/mailer/main.vala
+++ b/src/mailer/main.vala
@@ -160,8 +160,10 @@ int main(string[] args) {
     if (arg_debug) {
         Geary.Logging.init();
         Geary.Logging.log_to(stdout);
+        Geary.Logging.enable_flags(Geary.Logging.Flag.NETWORK);
+        GLib.Log.set_default_handler(Geary.Logging.default_handler);
     }
-    
+
     Geary.RFC822.init();
 
     credentials = new Geary.Credentials(


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