Skip to content
Snippets Groups Projects
Commit 75863e2f authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Debug info

parent c49b99ed
No related branches found
No related tags found
3 merge requests!233Modify restore to call user-defined bindings callback. Add Sent requests to...,!231Revert "Update store to print changes to the partners list",!192Hotfix/improved restore
......@@ -150,7 +150,7 @@ func resumeBackup(updateBackupCb UpdateBackupFn, c *api.Client,
// Setting backup trigger in client
b.backupContainer.SetBackup(b.TriggerBackup)
jww.INFO.Print("Resumed backup with password loaded from storage.")
jww.INFO.Print("resumed backup with password loaded from storage.")
return b, nil
}
......@@ -308,9 +308,14 @@ func (b *Backup) assembleBackup() backup.Backup {
// not yet noticed by user OR explicitly rejected.
bu.Contacts.Identities = append(bu.Contacts.Identities,
b.store.Auth().GetAllSentIDs()...)
jww.INFO.Printf("backup saw %d contacts", len(bu.Contacts.Identities))
jww.DEBUG.Printf("contacts in backup list: %+v", bu.Contacts.Identities)
//deduplicate list
bu.Contacts.Identities = deduplicate(bu.Contacts.Identities)
jww.INFO.Printf("backup saved %d contacts after deduplication",
len(bu.Contacts.Identities))
//add the memoized json params
bu.JSONParams = b.jsonParams
......
......@@ -69,6 +69,9 @@ func RestoreContactsFromBackup(backupPartnerIDs []byte, client *api.Client,
}
lookupIDs, resetContacts, restored := checkRestoreState(idList, store)
jww.INFO.Printf("restoring %d backup partner IDs", len(lookupIDs))
jww.DEBUG.Printf("backup partner IDs to restore: %+v", lookupIDs)
// State variables, how many we have looked up successfully
// and how many we have already reset.
totalCnt := len(idList)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment