[geary/wip/intermittitent-ci-test-failures-redux] Add some additional ImapDB debug logging



commit 394ad2f807de292b240b5b5fd02ebb5a32537321
Author: Michael Gratton <mike vee net>
Date:   Thu Feb 14 14:18:18 2019 +1100

    Add some additional ImapDB debug logging

 src/engine/imap-db/imap-db-account.vala  | 2 ++
 src/engine/imap-db/imap-db-database.vala | 2 ++
 src/engine/imap-db/imap-db-gc.vala       | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/engine/imap-db/imap-db-account.vala b/src/engine/imap-db/imap-db-account.vala
index 063817ee..9c994685 100644
--- a/src/engine/imap-db/imap-db-account.vala
+++ b/src/engine/imap-db/imap-db-account.vala
@@ -355,6 +355,8 @@ private class Geary.ImapDB.Account : BaseObject {
         });
         
         initialize_contacts(cancellable);
+
+        debug("Account opened");
     }
 
     public async void close_async(Cancellable? cancellable) throws Error {
diff --git a/src/engine/imap-db/imap-db-database.vala b/src/engine/imap-db/imap-db-database.vala
index f00ff910..e9e71e60 100644
--- a/src/engine/imap-db/imap-db-database.vala
+++ b/src/engine/imap-db/imap-db-database.vala
@@ -83,6 +83,8 @@ private class Geary.ImapDB.Database : Geary.Db.VersionedDatabase {
 
         if (cancellable != null)
             cancellable.cancelled.disconnect(cancel_gc);
+
+        debug("Database opened");
     }
 
     private void on_reap_async_completed(Object? object, AsyncResult result) {
diff --git a/src/engine/imap-db/imap-db-gc.vala b/src/engine/imap-db/imap-db-gc.vala
index 183bb2f8..905646f1 100644
--- a/src/engine/imap-db/imap-db-gc.vala
+++ b/src/engine/imap-db/imap-db-gc.vala
@@ -110,7 +110,7 @@ private class Geary.ImapDB.GC {
 
         RecommendedOperation op = RecommendedOperation.NONE;
         if (!yield has_message_rows(cancellable)) {
-            // No message rows exist, so don't bother vacuuming
+            debug("[%s] No recommending GC: no messages exist", to_string());
             return op;
         }
 


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