🎨 Improve load tree failed logging

This commit is contained in:
Daniel 2024-08-09 08:56:17 +08:00
parent 059d47cf03
commit 4cdd3ee470
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}