Log number of card hashes we got from server
This commit is contained in:
parent
9b1eba127a
commit
41725fdc4a
@ -336,10 +336,13 @@ func reloadTokens() error {
|
|||||||
globalLock.Lock()
|
globalLock.Lock()
|
||||||
defer globalLock.Unlock()
|
defer globalLock.Unlock()
|
||||||
validUids = make(ValidUids)
|
validUids = make(ValidUids)
|
||||||
|
var totalCardCount int = 0
|
||||||
for i, val := range cl.AllowedUids {
|
for i, val := range cl.AllowedUids {
|
||||||
log.Printf("%d: %+v\n", i, val.Token.UidHash)
|
log.Printf("%d: %+v\n", i, val.Token.UidHash)
|
||||||
validUids[val.Token.UidHash] = true
|
validUids[val.Token.UidHash] = true
|
||||||
|
totalCardCount = i
|
||||||
}
|
}
|
||||||
|
log.Printf("Got %d cards from server", totalCardCount)
|
||||||
|
|
||||||
if cl.KeepOpenUntil != nil {
|
if cl.KeepOpenUntil != nil {
|
||||||
updateKeepOpenDoor(*cl.KeepOpenUntil)
|
updateKeepOpenDoor(*cl.KeepOpenUntil)
|
||||||
|
Loading…
Reference in New Issue
Block a user