🔊 Add logging

This commit is contained in:
Daniel 2024-01-11 22:20:45 +08:00
parent 9a37cfdcda
commit 1d91cdeb1c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 17 additions and 12 deletions

View file

@ -1452,12 +1452,17 @@ func removeDoc(box *Box, p string, luteEngine *lute.Lute) {
if existChildren {
if err = box.Remove(childrenDir); nil != err {
logging.LogErrorf("remove children dir [%s%s] failed: %s", box.ID, childrenDir, err)
return
}
logging.LogInfof("removed children dir [%s%s]", box.ID, childrenDir)
}
if err = box.Remove(p); nil != err {
logging.LogErrorf("remove [%s%s] failed: %s", box.ID, p, err)
return
}
logging.LogInfof("removed doc [%s%s]", box.ID, p)
box.removeSort(removeIDs)
RemoveRecentDoc(removeIDs)
if "/" != dir {