[geary/wip/conversation-polish: 4/26] Make Geary.ClientService debug logging more useful



commit a46539c4159933c3a26db7c7081d03c03ccdf2b3
Author: Michael Gratton <mike vee net>
Date:   Thu Jan 24 18:49:10 2019 +1100

    Make Geary.ClientService debug logging more useful

 src/engine/api/geary-client-service.vala | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/engine/api/geary-client-service.vala b/src/engine/api/geary-client-service.vala
index 25d8da19..7a2b9c35 100644
--- a/src/engine/api/geary-client-service.vala
+++ b/src/engine/api/geary-client-service.vala
@@ -214,7 +214,7 @@ public abstract class Geary.ClientService : BaseObject {
 
         connect_handlers();
 
-        this.notify["running"].connect(on_running_notify);
+        this.notify["is-running"].connect(on_running_notify);
         this.notify["current-status"].connect(on_current_status_notify);
     }
 
@@ -407,11 +407,21 @@ public abstract class Geary.ClientService : BaseObject {
     }
 
     private void on_running_notify() {
-        debug(this.is_running ? "started" : "stopped");
+        debug(
+            "%s:%s %s",
+            this.account.id,
+            this.configuration.protocol.to_value(),
+            this.is_running ? "started" : "stopped"
+        );
     }
 
     private void on_current_status_notify() {
-        debug(this.current_status.to_value());
+        debug(
+            "%s:%s: status changed to: %s",
+            this.account.id,
+            this.configuration.protocol.to_value(),
+            this.current_status.to_value()
+        );
     }
 
        private void on_connectivity_change() {


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