Log number of card hashes we got from server

This commit is contained in:
Arti Zirk 2023-08-02 09:53:35 +03:00
parent 9b1eba127a
commit 41725fdc4a

View File

@ -336,10 +336,13 @@ func reloadTokens() error {
globalLock.Lock()
defer globalLock.Unlock()
validUids = make(ValidUids)
var totalCardCount int = 0
for i, val := range cl.AllowedUids {
log.Printf("%d: %+v\n", i, val.Token.UidHash)
validUids[val.Token.UidHash] = true
totalCardCount = i
}
log.Printf("Got %d cards from server", totalCardCount)
if cl.KeepOpenUntil != nil {
updateKeepOpenDoor(*cl.KeepOpenUntil)