removed useless println

This commit is contained in:
Timon Ringwald 2020-09-10 15:05:28 +02:00
parent eb155f7ef2
commit 3c49668cc9
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -7,7 +7,7 @@ import (
)
func TestErr(t *testing.T) {
TraceCallStack = false
DisableTrace = false
err := doStuff()
fmt.Println(err)
}