mirror of
https://gitee.com/johng/gf
synced 2026-07-04 13:02:36 +08:00
fix issue in invalid error stacks for glog; improve internal/debug and gutil for stack printing
This commit is contained in:
@ -39,7 +39,7 @@ func PrintStack(skip ...int) {
|
||||
// Stack returns a formatted stack trace of the goroutine that calls it.
|
||||
// It calls runtime.Stack with a large enough buffer to capture the entire trace.
|
||||
func Stack(skip ...int) string {
|
||||
return StackWithFilter("", skip...)
|
||||
return StackWithFilter(gFILTER_KEY, skip...)
|
||||
}
|
||||
|
||||
// StackWithFilter returns a formatted stack trace of the goroutine that calls it.
|
||||
|
||||
Reference in New Issue
Block a user