1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-11 18:20:28 +09:00

Add debug log

This commit is contained in:
mcrakhman 2024-02-05 20:33:28 +01:00
parent 141ab46e38
commit dd6507a4ba
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -119,6 +119,7 @@ func (s *syncAcl) AddRawRecords(rawRecords []*consensusproto.RawRecordWithId) (e
return ErrSyncAclClosed
}
prevHead := s.AclList.Head().Id
log.Debug("received updates", zap.String("aclId", s.AclList.Id()), zap.String("prevHead", prevHead), zap.String("lastHead", rawRecords[len(rawRecords)-1].Id))
err = s.AclList.AddRawRecords(rawRecords)
if err != nil || s.AclList.Head().Id == prevHead {
return