Stack test
This commit is contained in:
parent
806f31b69d
commit
031e85ed62
5
pkg.go
5
pkg.go
@ -22,11 +22,8 @@ var (
|
|||||||
baseDirLength int
|
baseDirLength int
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
debug.PrintStack()
|
|
||||||
}
|
|
||||||
|
|
||||||
func Init() {
|
func Init() {
|
||||||
|
debug.PrintStack()
|
||||||
_, file, _, _ := runtime.Caller(1)
|
_, file, _, _ := runtime.Caller(1)
|
||||||
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
|
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
|
||||||
dir := path.Dir(file)
|
dir := path.Dir(file)
|
||||||
|
Loading…
Reference in New Issue
Block a user