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