removed useless println
This commit is contained in:
parent
eb155f7ef2
commit
3c49668cc9
@ -1,7 +1,6 @@
|
|||||||
package adverr
|
package adverr
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -23,7 +22,6 @@ func Trace(skip int) *CallTrace {
|
|||||||
pc := make([]uintptr, CallStackLength+1)
|
pc := make([]uintptr, CallStackLength+1)
|
||||||
n := runtime.Callers(skip+1, pc)
|
n := runtime.Callers(skip+1, pc)
|
||||||
pc = pc[:n]
|
pc = pc[:n]
|
||||||
fmt.Println(n, CallStackLength)
|
|
||||||
return &CallTrace{runtime.CallersFrames(pc), n == CallStackLength+1}
|
return &CallTrace{runtime.CallersFrames(pc), n == CallStackLength+1}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestErr(t *testing.T) {
|
func TestErr(t *testing.T) {
|
||||||
TraceCallStack = false
|
DisableTrace = false
|
||||||
err := doStuff()
|
err := doStuff()
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user