[geary/mjog/db-result-timing: 7/8] Geary.ImapEngine.GenericAccount: Set database logging parent per account




commit 12ed1fe1003db47e374b886cab7527d9863a8a8f
Author: Michael Gratton <mike vee net>
Date:   Wed Sep 9 18:38:08 2020 +1000

    Geary.ImapEngine.GenericAccount: Set database logging parent per account
    
    Set the database's logging parent so its log statements are associated
    with its account in the inspector.

 src/engine/imap-engine/imap-engine-generic-account.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/engine/imap-engine/imap-engine-generic-account.vala 
b/src/engine/imap-engine/imap-engine-generic-account.vala
index 2bd087b17..ef1ba7b4d 100644
--- a/src/engine/imap-engine/imap-engine-generic-account.vala
+++ b/src/engine/imap-engine/imap-engine-generic-account.vala
@@ -79,6 +79,8 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.Account {
         base(config, imap, smtp);
 
         this.local = local;
+        this.local.db.set_logging_parent(this);
+
         this.contact_store = new ContactStoreImpl(local.db);
 
         imap.min_pool_size = IMAP_MIN_POOL_SIZE;


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