fix issue in invalid error stacks for glog; improve internal/debug and gutil for stack printing

This commit is contained in:
John
2019-08-08 22:58:49 +08:00
parent 4eac97a7d8
commit 7172ae0232
4 changed files with 16 additions and 19 deletions

View File

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