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

Another log

This commit is contained in:
mcrakhman 2024-02-05 21:06:08 +01:00
parent 0d0e7898f7
commit 7093b32094
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -4,10 +4,11 @@ package syncacl
import (
"context"
"go.uber.org/zap"
"github.com/anyproto/any-sync/app/logger"
"github.com/anyproto/any-sync/commonspace/object/acl/list"
"github.com/anyproto/any-sync/consensus/consensusproto"
"go.uber.org/zap"
)
type AclSyncProtocol interface {
@ -28,6 +29,7 @@ func (a *aclSyncProtocol) HeadUpdate(ctx context.Context, senderId string, updat
log := a.log.With(
zap.String("senderId", senderId),
zap.String("update head", update.Head),
zap.String("current head", a.aclList.Head().Id),
zap.Int("len(update records)", len(update.Records)))
log.DebugCtx(ctx, "received acl head update message")