[geary/wip/conversation-polish: 13/22] Make Geary.ClientService debug logging more useful
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/conversation-polish: 13/22] Make Geary.ClientService debug logging more useful
- Date: Tue, 29 Jan 2019 05:39:34 +0000 (UTC)
commit 5e3344cb2bb4ac0d8600b839455dbdf23d0b702a
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]