mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 11:50:04 -06:00
🎨 Improve load tree failed logging
This commit is contained in:
@@ -215,7 +215,10 @@ func LoadTreeByBlockID(id string) (ret *parse.Tree, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, logging.ShortStack())
|
||||
stack := logging.ShortStack()
|
||||
if !strings.Contains(stack, "BuildBlockBreadcrumb") {
|
||||
logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, stack)
|
||||
}
|
||||
return nil, ErrTreeNotFound
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user