add switch of brief stack for package gerror (#2153)

This commit is contained in:
John Guo
2022-09-27 10:11:33 +08:00
committed by GitHub
parent 141ca62c6d
commit 66aa0c7050
9 changed files with 42 additions and 18 deletions

View File

@ -15,7 +15,7 @@ type stack []uintptr
const (
// maxStackDepth marks the max stack depth for error back traces.
maxStackDepth = 32
maxStackDepth = 64
)
// Cause returns the root cause error of `err`.