when logging about threading operations, include info about account

in verifydata, when warning about missing threading, print the db file.
otherwise it isn't clear which account this is about

when upgrading account thread storage, pass the logger that has the account
name.
This commit is contained in:
Mechiel Lukkien
2023-09-24 13:29:32 +02:00
parent f2de89e365
commit 91140da3a7
2 changed files with 4 additions and 4 deletions

View File

@ -245,9 +245,9 @@ possibly making them potentially no longer readable by the previous version.
up := store.Upgrade{ID: 1}
if err := db.Get(ctxbg, &up); err != nil {
log.Printf("warning: getting upgrade record (continuing, but not checking message threading): %v", err)
log.Printf("warning: %s: getting upgrade record (continuing, but not checking message threading): %v", dbpath, err)
} else if up.Threads != 2 {
log.Printf("warning: no message threading in database, skipping checks for threading consistency")
log.Printf("warning: %s: no message threading in database, skipping checks for threading consistency", dbpath)
}
mailboxes := map[int64]store.Mailbox{}