Fix incorrect args in debug
This commit is contained in:
parent
f9a064e9aa
commit
50e3d70f70
@ -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 {
|
||||
|
||||
@ -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 :-)")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user