mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:04:38 +03:00
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:
@ -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{}
|
||||
|
Reference in New Issue
Block a user