mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve load tree failed logging
This commit is contained in:
parent
059d47cf03
commit
4cdd3ee470
1 changed files with 4 additions and 1 deletions
|
|
@ -215,7 +215,10 @@ func LoadTreeByBlockID(id string) (ret *parse.Tree, err error) {
|
||||||
return
|
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
|
return nil, ErrTreeNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue