🔇 Remove logs

This commit is contained in:
Daniel 2024-10-14 20:43:30 +08:00
parent 475155b7df
commit 62b90639af
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 {
if "dev" == util.Mode {
logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, logging.ShortStack()) logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, logging.ShortStack())
}
return nil, ErrTreeNotFound return nil, ErrTreeNotFound
} }
} }
@ -217,8 +219,10 @@ 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") {
if "dev" == util.Mode {
logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, stack) logging.LogWarnf("block tree not found [id=%s], stack: [%s]", id, stack)
} }
}
return nil, ErrTreeNotFound return nil, ErrTreeNotFound
} }