Add more logs for space

This commit is contained in:
mcrakhman 2023-02-21 16:46:40 +01:00 committed by Mikhail Iudin
parent aa6c2e7ce4
commit 8abf60d5d7
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -137,7 +137,7 @@ func (s *space) LastUsage() time.Time {
func (s *space) Locked() bool {
locked := s.treesUsed.Load() > 1
log.With(zap.Int32("trees used", s.treesUsed.Load()), zap.Bool("locked", locked)).Debug("space lock status check")
log.With(zap.Int32("trees used", s.treesUsed.Load()), zap.Bool("locked", locked), zap.String("spaceId", s.id)).Debug("space lock status check")
return locked
}
@ -197,6 +197,7 @@ func (s *space) Init(ctx context.Context) (err error) {
Listener: listener,
WaitTreeRemoteSync: false,
})
log.Debug("building settings tree", zap.String("id", id), zap.String("spaceId", s.id))
if err != nil {
return
}