🔇 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)
bt = treenode.GetBlockTree(id)
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
}
}
@ -217,7 +219,9 @@ func LoadTreeByBlockID(id string) (ret *parse.Tree, err error) {
stack := logging.ShortStack()
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
}