Stack test
This commit is contained in:
parent
c15e592827
commit
32fcdb62fc
2
pkg.go
2
pkg.go
@ -23,10 +23,10 @@ var (
|
|||||||
|
|
||||||
func Init() {
|
func Init() {
|
||||||
_, file, _, _ := runtime.Caller(1)
|
_, file, _, _ := runtime.Caller(1)
|
||||||
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
|
|
||||||
dir := path.Dir(file)
|
dir := path.Dir(file)
|
||||||
dirBase := path.Dir(dir)
|
dirBase := path.Dir(dir)
|
||||||
baseDirLength = len(dirBase)
|
baseDirLength = len(dirBase)
|
||||||
|
fmt.Printf("--\nDIR: %s\nBASE: %s\nLENGTH: %d\n--\n", file, dirBase, baseDirLength)
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetLogCallback(cbk LogCallback) {
|
func SetLogCallback(cbk LogCallback) {
|
||||||
|
Loading…
Reference in New Issue
Block a user