[geary/wip/543-append-failure] WIP: Add some temporary debug logging
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/543-append-failure] WIP: Add some temporary debug logging
- Date: Wed, 28 Aug 2019 13:50:48 +0000 (UTC)
commit 3309cddcee67bed6992181d7388705400ef4d266
Author: Michael Gratton <mike vee net>
Date: Wed Aug 28 23:50:17 2019 +1000
WIP: Add some temporary debug logging
src/engine/imap/command/imap-command.vala | 3 +++
src/engine/imap/transport/imap-client-connection.vala | 2 ++
2 files changed, 5 insertions(+)
---
diff --git a/src/engine/imap/command/imap-command.vala b/src/engine/imap/command/imap-command.vala
index be7764de..318772fc 100644
--- a/src/engine/imap/command/imap-command.vala
+++ b/src/engine/imap/command/imap-command.vala
@@ -161,6 +161,7 @@ public class Geary.Imap.Command : BaseObject {
LiteralParameter literal = arg as LiteralParameter;
if (literal != null) {
+ debug("Have literal");
// Need to manually flush after serialising the
// literal param, so it actually gets to the
// server
@@ -177,7 +178,9 @@ public class Geary.Imap.Command : BaseObject {
// Will get notified via continuation_requested
// when server indicated the literal can be sent.
+ debug("Waiting for continuation");
yield this.literal_spinlock.wait_async(cancellable);
+ debug("Got continuation");
yield literal.serialize_data(ser, cancellable);
}
}
diff --git a/src/engine/imap/transport/imap-client-connection.vala
b/src/engine/imap/transport/imap-client-connection.vala
index fd9e2f1b..0f524131 100644
--- a/src/engine/imap/transport/imap-client-connection.vala
+++ b/src/engine/imap/transport/imap-client-connection.vala
@@ -482,6 +482,7 @@ public class Geary.Imap.ClientConnection : BaseObject {
this.current_command = command;
this.sent_queue.add(command);
+ debug("Sending: %s", command.to_brief_string());
yield command.send(this.ser, cancellable);
sent_command(command);
yield command.send_wait(this.ser, cancellable);
@@ -507,6 +508,7 @@ public class Geary.Imap.ClientConnection : BaseObject {
private void on_parameters_ready(RootParameters root) {
try {
+ debug("Receiving: %s", root.to_string());
ServerResponse response = ServerResponse.migrate_from_server(root);
GLib.Type type = response.get_type();
if (type == typeof(StatusResponse)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]