Add more logs for space

This commit is contained in:
mcrakhman committed 2023-02-21 16:46:40 +01:00
1 parent c37c7ba874
commit 7da3553db3
1 file changed
+2 -1
+2 -1
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
}