mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +01:00
🔊 Add logging
This commit is contained in:
parent
9a37cfdcda
commit
1d91cdeb1c
3 changed files with 17 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue