Fix incorrect args in debug

This commit is contained in:
mcrakhman 2022-12-05 20:02:26 +01:00 committed by Mikhail Iudin
parent a67aebf526
commit 6bf8864f5a
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0
2 changed files with 4 additions and 3 deletions

View File

@ -108,8 +108,9 @@ func (s *space) LastUsage() time.Time {
}
func (s *space) Locked() bool {
log.With(zap.Int32("trees used", s.treesUsed.Load())).Debug("space lock status check")
return s.treesUsed.Load() > 1
locked := s.treesUsed.Load() > 1
log.With(zap.Int32("trees used", s.treesUsed.Load()), zap.Bool("locked", locked)).Debug("space lock status check")
return locked
}
func (s *space) Id() string {

View File

@ -195,7 +195,7 @@ func (s *service) registerClientCommands() {
fmt.Println("couldn't delete the document", err)
return
}
fmt.Println("deleted", args[1])
fmt.Println("deleted", args[0])
},
}
cmdDeleteDocument.Flags().String("space", "", "the space where something is happening :-)")