Add more logs for space
This commit is contained in:
parent
aa6c2e7ce4
commit
8abf60d5d7
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user