mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🔇 Remove logs
This commit is contained in:
parent
475155b7df
commit
62b90639af
1 changed files with 6 additions and 2 deletions
|
|
@ -192,7 +192,9 @@ func LoadTreeByBlockIDWithReindex(id string) (ret *parse.Tree, err error) {
|
||||||
searchTreeInFilesystem(id)
|
searchTreeInFilesystem(id)
|
||||||
bt = treenode.GetBlockTree(id)
|
bt = treenode.GetBlockTree(id)
|
||||||
if nil == bt {
|
if nil == bt {
|
||||||
logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, logging.ShortStack())
|
if "dev" == util.Mode {
|
||||||
|
logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, logging.ShortStack())
|
||||||
|
}
|
||||||
return nil, ErrTreeNotFound
|
return nil, ErrTreeNotFound
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -217,7 +219,9 @@ func LoadTreeByBlockID(id string) (ret *parse.Tree, err error) {
|
||||||
|
|
||||||
stack := logging.ShortStack()
|
stack := logging.ShortStack()
|
||||||
if !strings.Contains(stack, "BuildBlockBreadcrumb") {
|
if !strings.Contains(stack, "BuildBlockBreadcrumb") {
|
||||||
logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, stack)
|
if "dev" == util.Mode {
|
||||||
|
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