🎨 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
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue